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

前端 未结 3 1423
天涯浪人
天涯浪人 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 11:59

    Quoted from wikipedia

    File names are limited to 255 UTF-16 code words. Certain names are reserved in the volume root directory and cannot be used for files. These are: $MFT, $MFTMirr, $LogFile, $Volume, $AttrDef, . (dot), $Bitmap, $Boot, $BadClus, $Secure, $Upcase, and $Extend;[3] . (dot) and $Extend are both directories; the others are files. The NT kernel limits full paths to 32,767 UTF-16 code words.

    http://en.wikipedia.org/wiki/NTFS

提交回复
热议问题