v0.0.3
name_plus
파일 및 디렉터리 이름을 자동으로 증가시키고 생성합니다.
3좋아요 2630일 다운로드140Pub 점수
AndroidiOSmacOSWindowsLinux
파일 및 디렉터리 이름을 자동으로 증가시키고 생성
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
pub package
Last Commits
GitHub repo size
License
Uploaded By
Automatically increment File & Directory name and create.
create File with extension
File('path').namePlus('filename');
File('path').namePlusSync('filename');
create Directory with extension
Directory('path').namePlus('filename');
Directory('path').namePlusSync('filename');
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
);
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
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
Feel free to file an issue if you find a problem or make pull requests.
All contributions are welcome :)