User Tools

Site Tools


transformations:filecommand

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
transformations:filecommand [2021/06/20 00:19] craigttransformations:filecommand [2021/07/17 15:40] (current) craigt
Line 9: Line 9:
   * Rename or clone file   * Rename or clone file
   * Rename a list of files   * Rename a list of files
-  * Delete fileor list of files+  * Delete file or list of files
   * Create folder   * Create folder
   * Clean folder (deletes files and, optionally, subfolders)   * Clean folder (deletes files and, optionally, subfolders)
Line 86: Line 86:
 |Parent folder<sup>*</sup>|Enter or browse to the folder the new folder will be created within.| |Parent folder<sup>*</sup>|Enter or browse to the folder the new folder will be created within.|
 |If a folder with such a name already exists|Select how EasyMorph will handle cases when a folder with the same name already exists in the selected parent folder.  Options:  //Fail// (the workflow stops and displays an error) or //Do nothing//.| |If a folder with such a name already exists|Select how EasyMorph will handle cases when a folder with the same name already exists in the selected parent folder.  Options:  //Fail// (the workflow stops and displays an error) or //Do nothing//.|
 +<sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\
  
 \\  \\ 
Line 93: Line 94:
 |Folder<sup>*</sup>|Enter or browse to the folder to clean.| |Folder<sup>*</sup>|Enter or browse to the folder to clean.|
 |Subfolders|Select what action to take on subfolders under the selected folder.  Options:  //Delete// (delete all subfolders), //Clean recursively// (delete files within all subfolders, at all levels), or //Do nothing//.| |Subfolders|Select what action to take on subfolders under the selected folder.  Options:  //Delete// (delete all subfolders), //Clean recursively// (delete files within all subfolders, at all levels), or //Do nothing//.|
 +<sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\
  
 \\  \\ 
Line 127: Line 129:
 |Create the folder if it doesn't exist|Check this option to create the named //Target folder// if it does not exist. | |Create the folder if it doesn't exist|Check this option to create the named //Target folder// if it does not exist. |
 |If any file with such name already exists|Select how EasyMorph will handle saving a file if a file with the same name exists in the destination folder.  Options:  //Overwrite//, //Rename the existing file//, or //Halt project execution// See the "File already exists" table below.| |If any file with such name already exists|Select how EasyMorph will handle saving a file if a file with the same name exists in the destination folder.  Options:  //Overwrite//, //Rename the existing file//, or //Halt project execution// See the "File already exists" table below.|
 +<sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\
  
 \\ \\  \\ \\ 
Line 142: Line 145:
 More complex file operations can be implemented using Windows shell commands in the [[transformations:runprogram|Run program]] or [[transformations:iterateprogram|Iterate external program]] actions. More complex file operations can be implemented using Windows shell commands in the [[transformations:runprogram|Run program]] or [[transformations:iterateprogram|Iterate external program]] actions.
  
 +\\ 
 +=====Community examples=====
 +  * [[https://community.easymorph.com/t//1629/2|In case, no file to load]] ([[https://community.easymorph.com/uploads/short-url/4OREDaUn1vdfwxKOGmMoLXAl7CB.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Delete, if exists//; Action position: //2//)
 +  * [[https://community.easymorph.com/t//1769/1|How to do recursive loops in EasyMorph]] ([[https://community.easymorph.com/uploads/short-url/qM6kmqrDRWiEDJFljIa2u6QWre1.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Loop//; Action position: //5//)
 +  * [[https://community.easymorph.com/t//2653/1|Extracting all projects published in the Community and their actions]] ([[https://community.easymorph.com/uploads/short-url/mrnJQUJJL8Do1T8ioicyzE1VgmK.morph|Project]]; Module: //Download & parse//; Group: //Group 1//;\\ Table: //Delete temp file//; Action position: //2//)
  
 \\  \\ 
transformations/filecommand.txt · Last modified: 2021/07/17 15:40 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki