Create folder and rename if another has the same name

Create folder and rename if another has the same name and contains at least one file.
241 Downloads
Aktualisiert 28. Mai 2013

Lizenz anzeigen

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.

Zitieren als

Guilherme Coco Beltramini (2026). Create folder and rename if another has the same name (https://de.mathworks.com/matlabcentral/fileexchange/41944-create-folder-and-rename-if-another-has-the-same-name), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2010a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu File Operations finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0