Max length - Directory plus file name

jimbo45

New member
Guru
Gold Member
VIP
Local time
3:10 PM
Messages
5,941
Location
Hafnarfjörður IS
Hi all
just a quick question

What's the maximum length of a directory PLUS file name -- the reason I'm asking this is that I've some CD's (a lot BTW) ripped into directories into FLAC format.

Tidying up the music folders I sometimes get a warning -- Name too long to send to the re-cycle bin.

I need to know the max nr of characters so I can select the ripping parameters correctly. If the combined directory / file name is too long then I might have trouble backing up the data (music) too.

I usually use ALBUM name (extracted from GRACENOTE or FREEDB depending on what the ripping program is) as the directory name and a number of parameters added to the track title - including a number for the music tracks with the album name as the directory.

However I can't seem to find anything on Max file name length for NTFS.

Cheers
jimbo
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built, several laptops HP/ASUS
OS
Linux CENTOS 7 / various Windows OS'es and servers
CPU
Intel i7 Intel i5
Memory
8GB, 16GB
Graphics Card(s)
On Motherboard
Sound Card
Realtek HD audio
Monitor(s) Displays
Apple Cinema display, Samsung LCD
Screen Resolution
1920 X 1080
Hard Drives
4 X 1TB SATA
Mouse
Toshiba wireless laser
Internet Speed
> 20MB up
The max file name length is 255 (UTF-16) for the full path the limit is 32,767 (UTF-16).
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
In Practice:

The max file name length is 255 (UTF-16) for the full path the limit is 32,767 (UTF-16).

I tested this "theory" in practice, and the maximum file name length is indeed 255 bytes, but the full path limit is 258 bytes:

FILELENGTH.png


The full path limit of 32,767 characters is only obtainable by using "\\?\c:\<very long path>" in programming languages and does not reflect normal Windows or Dos usage, which is limited to 258 characters + a terminating zero byte:

filelength2.png



 

My Computer

OS
Windows 7 Home Premium x64
Back
Top