Create folder and rename if another has the same name
版本 1.0.0.0 (2.9 KB) 作者:
Guilherme Coco Beltramini
Create folder and rename if another has the same name and contains at least one file.
USAGE
create_folder(newdir)
Folder "newdir" will be created.
If there is already a folder named "newdir" with any file regardless of the level, it will be renamed to "newdir-backup" (or "newdir-backup02",
"newdir-backup03", ...).
If "newdir" is empty or contains only folders, nothing is done.
引用格式
Guilherme Coco Beltramini (2024). Create folder and rename if another has the same name (https://www.mathworks.com/matlabcentral/fileexchange/41944-create-folder-and-rename-if-another-has-the-same-name), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2010a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 File Operations 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |