Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the limitations on filenames saved to the iPhone?

I can't seem to find any documentation on this. Is there a limit to the number of characters that can be used in a filename and/or is there a restriction on what characters can be used in a file name saved by an iPhone app? Thanks.

like image 689
NickDK Avatar asked Dec 17 '22 03:12

NickDK


2 Answers

The underlying filesystem is HFS+ which limits filenames to 255 UTF-16 characters. There may be additional restrictions on the filenames but I'm not aware of any.

like image 87
Michael Greene Avatar answered Feb 16 '23 07:02

Michael Greene


According to this site, the only forbidden character on HFS+ volumes (which as Michael Greene stated is the underlying filesystem on the iPhone) is the colon character. You may also have some trouble using the '/' character since OS X tends to treat those as directory separators, too.

like image 28
clee Avatar answered Feb 16 '23 07:02

clee