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: documentation/api_jszip/file_data.md
+11-22Lines changed: 11 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,34 +26,25 @@ compressionOptions | object | `null` | the options to use when compressing the f
26
26
comment | string | null | The comment for this file.
27
27
optimizedBinaryString | boolean | `false` | Set to true if (and only if) the input is a "binary string" and has already been prepared with a 0xFF mask.
28
28
createFolders | boolean | `false` | Set to true if folders in the file path should be automatically created, otherwise there will only be virtual folders that represent the path to the file.
29
-
unixPermissions | object | null | The UNIX permissions of the file, if any.
30
-
dosPermissions | object | null | The DOS permissions of the file, if any.
29
+
unixPermissions | 16 bits number | null | The UNIX permissions of the file, if any.
30
+
dosPermissions | 6 bits number | null | The DOS permissions of the file, if any.
31
+
dir | boolean | false | Set to true if this is a directory and content should be ignored.
31
32
32
33
You shouldn't update the data given to this method : it is kept as it so any
33
34
update will impact the stored data.
34
35
35
36
__For the permissions__ :
36
37
37
-
The `*Permissions` fields has the following structure (the value is the default behavior) :
38
+
The field `unixPermissions` also accepts a string representing the octal value :
39
+
"644", "755", etc. On nodejs you can use the `mode` attribute of
0 commit comments