cleardir

버전 2.0.0 (1.56 KB) 작성자: Ajay Kumar
Delete only the contents of a folder
다운로드 수: 26
업데이트 날짜: 2023/12/8

라이선스 보기

Since delete command doesn't work on folders and rmdir deletes everything including the root folder, I have written this piece of code to remove/delete all the files and subfolders within a given folder without deleting the folder itself. Please specify the full path of the folder in order to empty it's contents.

인용 양식

Ajay Kumar (2026). cleardir (https://kr.mathworks.com/matlabcentral/fileexchange/155507-cleardir), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2023b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
버전 게시됨 릴리스 정보
2.0.0

- Bug fixes (latent bugs highlighted in Stephen23 review)
- Minor code improvements (suggestions from Stephen23's review)
- Up to date comments
Shout out to Stephen23 for his detailed helpful review!

1.0.0