zipping empty subdirectories

3 ビュー (過去 30 日間)
Ali
Ali 2012 年 6 月 19 日
回答済み: Meet 2024 年 7 月 26 日
I try to zip a directory which contains empty sub-directories but zip() function ignore the empty ones. Is there way to include the empty subdirectories as well?

回答 (1 件)

Meet
Meet 2024 年 7 月 26 日
Hi Ali,
I replicated the issue of zipping the directories and subdirectories using the zip function and successfully zipped empty directories and subdirectories. I used MATLAB R2024a to reproduce the scenario. Here is the code:
zippedfiles = zip('myfiles.zip','myfolder');
For more information on the "zip" function, you can refer to the following documentation: Zip function

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by