OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_COMMON_ZIP_H_ | |
6 #define CHROME_COMMON_ZIP_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/file_path.h" | |
11 | |
12 // Zip the contents of src_path into dest_file. src_path can be a file or | |
13 // directory. If it is a directory, it will be zipped recursively. | |
Erik does not do reviews
2009/05/29 23:33:27
note that on failure a partial zip file may still
| |
14 bool Zip(const FilePath& src_path, const FilePath& dest_file); | |
15 | |
16 // Unzip the contents of zip_file into dest_dir. The complete paths of all | |
17 // created files and directories are added to files if it is non-NULL. | |
18 // Returns true on success. Does not clean up dest_dir on failure. | |
19 // Does not support encrypted or password protected zip files. | |
20 bool Unzip(const FilePath& zip_file, const FilePath& dest_dir, | |
21 std::vector<FilePath>* files); | |
22 | |
23 #endif // CHROME_COMMON_ZIP_H_ | |
OLD | NEW |