You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: os/src/ZipOps.scala
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,14 @@ object zip {
31
31
/**
32
32
* Zips the provided list of files and directories into a single ZIP archive.
33
33
*
34
-
* If `dest` already exists and is a zip, performs modifications to `dest` in place
35
-
* rather than creating a new zip.
34
+
* Unix file permissions will be preserved when creating a new zip, i.e. when `dest` does not already exists.
36
35
*
37
-
* When adding new files to an existing zip,
38
-
* - UNIX file permissions will be preserved if Java Runtime Version >= 14
39
-
* - if using Java Runtime Version < 14, UNIX file permissions are not preserved, even for existing zip entries
36
+
* If `dest` already exists and is a zip, performs modifications to `dest` in place
37
+
* rather than creating a new zip. In that case,
38
+
* - Unix file permissions will be preserved if Java Runtime Version >= 14
39
+
* - if using Java Runtime Version < 14, Unix file permissions are not preserved, even for existing zip entries
40
40
* - symbolics links will always be stored as the referenced files
41
-
* - existing symbolic links stored the zip might lose their symbolic link file type field
41
+
* - existing symbolic links stored in the zip might lose their symbolic link file type field and become broken
42
42
*
43
43
* @paramdest The path to the destination ZIP file.
44
44
* @paramsources A list of paths to files and directories to be zipped. Defaults to an empty list.
@@ -47,7 +47,7 @@ object zip {
47
47
* @parampreserveMtimes Whether to preserve modification times (mtimes) of the files.
48
48
* @paramdeletePatterns A list of regular expression patterns to delete files from an existing ZIP archive before appending new ones.
49
49
* @paramcompressionLevel number from 0-9, where 0 is no compression and 9 is best compression. Defaults to -1 (default compression).
50
-
* @paramfollowLinks Whether to store symbolic links as the referenced files. Default to true. Setting this to false has no effect when modifying a zip file in place.
50
+
* @paramfollowLinks Whether to store symbolic links as the referenced files. Default to `true`. Setting this to `false` has no effect when modifying a zip file in place.
0 commit comments