Rename a directory in-place (without moving its content)
조회 수: 1 (최근 30일)
이전 댓글 표시
Using {movefile} to rename a directory actually moves all the contents to a new folder and then delete the previous one. And if there are huge number of files in the directory, that is time consuming. Hence, is there a way to rename the directory in-place, without actually moving the sub-files and sub-directories.
Thanks for your help.
Yours, Maad
댓글 수: 0
답변 (1개)
Krithika A
2018년 7월 25일
What do you mean by rename the directory? You mean the folder that has all your files? If that's it, you just need to rename the folder on your drive.
댓글 수: 3
Krithika A
2018년 7월 25일
Oh, you want to rename all the files in the directory. Is that correct? If so, what types of files are they? It would be different for each file type. It also depends on what the file names are currently and what you want to rename them to.
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!