Works on macOS, Linux, and Windows.In contrast to fs.unlink, del, and rimraf which permanently delete files, this only moves them to the trash, which is much safer and reversible.
trash recycle bin rm rmrf rimraf remove delete del file files dir directory directories folder folders xdgiOS File Manager on top of NSFileManager for simplifying files management. It provides many static methods for executing most common operations with few lines of code. It works by default in the Documents directory to allow use of relative paths, but it's possible to work easily on any other directory. Copy FCFileManager.h and FCFileManager.m to your project.
ios file manager nsfilemanager pod copy create move delete rename read write files directory xattr exif directories remove listSimilar to rimraf, but with a Promise API and support for multiple files and globbing. It also protects you against deleting the current working directory and above.Support this project and improve your JavaScript skills with this great ES6 course by Wes Bos. Try his free JavaScript 30 course for a taste of what to expect. You might also like his React and Sublime course.
delete files folders directories del remove destroy trash unlink clean cleaning cleanup rm rmrf rimraf rmdir glob gulpfriendly file folder directory dir fs filesystemBased on glob, but adds a bunch of useful features and a nicer API.Returns a Promise<Array> of matching paths.
glob nodejs patterns matching files directories globbing all array dirs expand filesystem filter find fnmatch folders fs globs gulpfriendly match matcher minimatch multi multiple paths pattern traverse util utility wildcard wildcards promise gitignore gitWorks on macOS, Linux, and Windows.In contrast to rm which is dangerous and permanently delete files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on safeguarding rm.
cli-app cli trash recycle bin rm rmrf rimraf remove delete del file files dir directory directories folder folders xdgCopy the file goto.sh somewhere in your filesystem and add a line in your .zshrc or .bashrc to source it. A formula named goto is available for the bash shell in macOS.
bash aliases directories utility productivity registered-aliases zshAll commands come with tab-completion.
directories tagging bash zsh shell productivity parallel-processing management git directory fish-shell fish python-2 python-3 python2 python3 python-library python-script python-3-5Get an array of parent directories including itself
parent directories parents folders path paths array listRequires multiple modules using glob patterns and combines them into a nested object.Returns a promise that resolves to an object containing the required contents of matching globbed files.
dir directory directories file files glob globs map mapreduce multi multiple reduce require treeReturns a Promise for an array of glob strings.Returns an array of glob strings.
glob pattern matching directories nodejs globbing convert directory extensions filesFTP can natively create only one directory at the time.Useful for being able to upload files to deep paths without knowing if the directories exists beforehand.
ftp jsftp file transfer protocol server client upload deploy deployment mkdirp dir directory directories folderReturns a Promise for the path to the created directory.Returns the path to the created directory.
mkdir mkdirp make directories dir dirs folders directory folder path parent parents intermediate recursively recursive create fs filesystem file-systemMake directories and their parents if needed - Like `mkdir -p`, but cross-platform
cli-app cli mkdir mkdirp make directories dir dirs folders directory folder path parent parents intermediate recursively recursive create fs filesystem file-system cross-platformUses the same resolution logic as npm and yarn.Directory with globally installed packages.
global prefix path paths npm yarn node modules node-modules package packages binary binaries bin directory directories npmrc rc config root resolveA require()-like method for directories, returning an object that mirrors the file tree. Use a property of the exports object as it's key (instead of the filename) in the final object.
require tree multiple paths nested folders directory directories loader api batch module loadingReturns true if a filepath exists on the file system and it's directory. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
is-directory directory stat stats fs dir directories dirs file filepath files fp node node.js path paths system
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.