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

105 visualizzazioni (ultimi 30 giorni)
please help me ! Thank you !
  2 Commenti
Imen Mani
Imen Mani il 13 Mag 2016
an empty file is a file which contains no line and an empty folder which contains no file

Accedi per commentare.

Risposta accettata

Star Strider
Star Strider il 13 Mag 2016
See the documentation in the dir function under Tips.

Più risposte (2)

Imen Mani
Imen Mani il 13 Mag 2016
I don't understand how to use it ! please help me !
  2 Commenti
Star Strider
Star Strider il 13 Mag 2016
It’s part of the documentation!
I can’t possibly improve on the description and code provided.
Pierre
Pierre il 31 Lug 2023
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.

Accedi per commentare.


Imen Mani
Imen Mani il 13 Mag 2016
ok . thank you for your help !

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by