Last updated:
0 purchases
name plus
Name Plus #
Automatically increment File & Directory name and create.
Usage #
create File with extension
File('path').namePlus('filename');
File('path').namePlusSync('filename');
copied to clipboard
create Directory with extension
Directory('path').namePlus('filename');
Directory('path').namePlusSync('filename');
copied to clipboard
Options #
When creating a File or Directory, you can pass some options:
File('path').namePlus(
'filename',
format: '(d)', // change increment number format
space: false, // space between name & number format
);
copied to clipboard
Documentation #
Check test.txt file name from example folder path and then name not exist create test.txt or name is already exist create with default format test 1.txt
File('example').namePlus('test.txt');
// test 1.txt
copied to clipboard
If you use format option, d is number place.
File('example').namePlus('test.txt', format: '(d)');
// test (2).txt
File('example').namePlus('test.txt', format: '{d}');
// test {3}.txt
copied to clipboard
Contribution #
Feel free to file an issue if you find a problem or make pull requests.
All contributions are welcome :)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.