![]() dirs Returns the object of the following properties:.error Returns if something went wrong and the continuation of creating folders and files was aborted, eg.root Returns the root path argument passed through the module function.The one argument is passed through done callback function with the following properties:.It is fired once when all folders and files are (un)successfully created or if some error has occured.json file containing that structure) for the chosen folder with fileAssistant.structurize method. > You can also generate the structure object (and. See how to create the valid structure object or just follow the instructions passed through done callback error property.json file that contain the list of files and folders and specify the actions that should be undertaken for them in the root folder. The structure argument should indicate the path to the.The structure argument should contain the list of files and folders and specify the actions that should be undertaken for them in the root folder.If there is some problem with the root, the Error is passed through done callback.If the root directory does not exist, it is created.It should indicate the folder path where the elements specified in the structure object should be handled.Usage fileAssistant(root,structure,done) const fileAssistant = require( 'file-assistant') įileAssistant(root, structure, done, each) Npm install file-assistant Tests > git clone I want to copy the missing files and subfolders from one folder to another (and replace the already existing files there).I want to copy only the missing files and subfolders from one folder to another.I want to cut the folder with its contents and paste it in the destination folder (or replace the folder with its all contents if it already exists there).I want to cut the folder with its contents and paste it in the destination folder.I want to copy the folder with its contents and paste it in the destination folder (or replace the folder with its all contents if it already exists there).I want to copy the folder with its contents and paste it in the destination folder.I want to replace some files in the existing folder.I want to add some extra files and folders to the existing folder.I want to empty the existing folder and then add new files and folders there.I want to create the folder with some files and subfolders.I want to take the content from one file and overwrite another file's content with it.I want to take the content from one file and append it to another file.I want to overwrite the content of the existing file with the new content.I want to append some extra content to the existing file.I want to cut the file and paste it in the destination folder (or replace the file if it already exists there).I want to cut the file and paste it in the destination folder.I want to copy the file and paste it in the destination folder (or replace the file if it already exists there).I want to copy the file and paste it in the destination folder. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |