ソースを参照

Clarify that entry names are guaranteed to be posixy

Manav Rathi 1 年間 前
コミット
5681f14967
1 ファイル変更13 行追加0 行削除
  1. 13 0
      web/packages/next/types/ipc.ts

+ 13 - 0
web/packages/next/types/ipc.ts

@@ -632,6 +632,19 @@ export interface FolderWatchSyncedFile {
  * The name of the entry is not just the file name, but rather is the full path
  * of the file within the zip. That is, each entry name uniquely identifies a
  * particular file within the given zip.
+ *
+ * When `entryName` is a path within a nested directory, it is guaranteed to use
+ * the POSIX path separator ("/") since that is the path separator required by
+ * the ZIP format itself
+ *
+ * > 4.4.17.1 The name of the file, with optional relative path.
+ * >
+ * >  The path stored MUST NOT contain a drive or  device letter, or a leading
+ * >  slash. All slashes MUST be forward slashes '/' as opposed to  backwards
+ * >  slashes '\' for compatibility with Amiga and UNIX file systems etc.  If
+ * >  input came from standard input, there is no file name field.
+ * >
+ * > https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
  */
 export type ZipItem = [zipPath: string, entryName: string];