How to remove an unwanted file in dataset for example : ".DS_Store"

11 ビュー (過去 30 日間)
Muhammad Raihan Ekaputra Idrisatria
Muhammad Raihan Ekaputra Idrisatria 2022 年 5 月 25 日
回答済み: Walter Roberson 2022 年 5 月 25 日
I have a problem while importing a dataset with a subfolders "Organic" and "Anorganic". After i check with dir command it shown a file called ".DS_Store" file. How to remove that unwanted file using a matlab command.
note : I'm using a mac os
Best Regards
Muhammad Raihan Ekaputra Idrisatria

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 5 月 25 日
Specify the file extensions to import. That file will not match the extensions.
Also if you use a wildcard to specify the file name, such as *.jpg then the * will never match a file that has period as its first character.

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by