필터 지우기
필터 지우기

How can I use copyfile within a zip file?

조회 수: 8 (최근 30일)
Bill Rooker
Bill Rooker 2012년 8월 22일
댓글: Friedrich 2014년 1월 9일
Hello everyone,
I have been given "official" files that are zipped and are stored in a specific folder. I would like to access the individual files and folders within the ZIP file using copyfile. I'll take the files and folders and place them in different locations. Now, I need to track what I did (I have a code that does this) so that the rearranged files/folder can be regenerated if something were to happen to those files. Is there a way to access files and folders within a ZIP file and use copyfile? Or is there another Matlab function that will do this?
I am able to do this when I unzip the folder; however, the unzipped folder is placed in a temporary location. I'd prefer to not have an intermediate step. I get multiple ZIP files of different models that have similar files and filenames so a "drag and drop" process can lead to error. I understand that there is a unzip function in Matlab, but again I prefer not to do this.
Any insight would be helpful.
Best regards,
Bill Rooker

채택된 답변

Jan
Jan 2012년 8월 22일
No, neither COPYFILE nor another Matlab function can access the files inside a ZIP file directly.
  댓글 수: 3
sandy
sandy 2014년 1월 9일
i am not familiar with java..can u tel the code for coping a file format alone froma zip file using java...
Friedrich
Friedrich 2014년 1월 9일
See here for an example.

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

추가 답변 (1개)

Daniel Shub
Daniel Shub 2012년 8월 23일

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by