summaryrefslogtreecommitdiff
path: root/google/zip.h
diff options
context:
space:
mode:
Diffstat (limited to 'google/zip.h')
-rw-r--r--google/zip.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/google/zip.h b/google/zip.h
index 6980d03..621f0d9 100644
--- a/google/zip.h
+++ b/google/zip.h
@@ -198,7 +198,9 @@ bool Unzip(const base::PlatformFile& zip_file,
UnzipOptions options = {});
// Unzips the contents of |zip_file| into |dest_dir|.
-// WARNING: This can overwrite existing files in |dest_dir|.
+// This function does not overwrite any existing file.
+// A filename collision will result in an error.
+// Therefore, |dest_dir| should initially be an empty directory.
bool Unzip(const base::FilePath& zip_file,
const base::FilePath& dest_dir,
UnzipOptions options = {});