Is there any length-limits of file path in NTFS?

前端 未结 3 1425
天涯浪人
天涯浪人 2021-02-05 11:41

Why can not I create a deep path whose characters in path is more than 255 in NTFS File System? It seems a limits of FAT32, but also exist in NTFS? Can anyone provide some docum

3条回答
  •  终归单人心
    2021-02-05 12:06

    Doc. You should certainly be able to create longer filepaths than 255 bytes, as long as each individual path component is under that. However you must be using the Unicode (W) versions of the file access calls to get this behaviour; if you're using the ANSI (A) byte-based interfaces such as those used by stdio, you'll be stuck with the limitations of the old pre-Unicode path interface.

提交回复
热议问题