When reading from a zip file if the initial call to zip_entry_read() returns false it would be advisable to run mkdir with the file name since it it very likely that the zero length file was a directory and attempts to save the files within the directory will fail if you dont create it first
zip_entry_read
パラメータ
- zip_entry
zip_read()により返されたディレクトリエントリ
- length
返すバイト数。指定されない場合、この関数は1024バイトを読み込みます。
注意: これは、読み込むデータの非圧縮時の長さとなります。
zip_entry_read
Matt
17-Nov-2005 09:53
17-Nov-2005 09:53