Skip to content

Commit 431e4c7

Browse files
committed
Edit doc
1 parent dc347a5 commit 431e4c7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

os/src/ZipOps.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ object zip {
3131
/**
3232
* Zips the provided list of files and directories into a single ZIP archive.
3333
*
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.
3635
*
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
4040
* - 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
4242
*
4343
* @param dest The path to the destination ZIP file.
4444
* @param sources A list of paths to files and directories to be zipped. Defaults to an empty list.
@@ -47,7 +47,7 @@ object zip {
4747
* @param preserveMtimes Whether to preserve modification times (mtimes) of the files.
4848
* @param deletePatterns A list of regular expression patterns to delete files from an existing ZIP archive before appending new ones.
4949
* @param compressionLevel number from 0-9, where 0 is no compression and 9 is best compression. Defaults to -1 (default compression).
50-
* @param followLinks 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+
* @param followLinks 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.
5151
* @return The path to the created ZIP archive.
5252
*/
5353
def apply(

0 commit comments

Comments
 (0)