Please I want to verify if a file or a folder is empty !?

조회 수: 85 (최근 30일)
Imen Mani
Imen Mani 2016년 5월 13일
댓글: Pierre 2023년 7월 31일
please help me ! Thank you !
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 13일
What is an empty file?
Imen Mani
Imen Mani 2016년 5월 13일
an empty file is a file which contains no line and an empty folder which contains no file

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2016년 5월 13일
See the documentation in the dir function under Tips.

추가 답변 (2개)

Imen Mani
Imen Mani 2016년 5월 13일
I don't understand how to use it ! please help me !
  댓글 수: 2
Star Strider
Star Strider 2016년 5월 13일
It’s part of the documentation!
I can’t possibly improve on the description and code provided.
Pierre
Pierre 2023년 7월 31일
Having read the documentation you pointed to, I don't see how it answers the question. I also don't understan how to check if a directory is empty by using the dir function.

댓글을 달려면 로그인하십시오.


Imen Mani
Imen Mani 2016년 5월 13일
ok . thank you for your help !

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by