Re: Path length for files on NTFS
| From: | Karsten Dambekalns | Date: | Fri, 16 Jan 2009 17:27:44 +0000 |
| Subject: | Re: Path length for files on NTFS | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42663@lists.php.net to get a copy of this message | ||
Hi.
On 16.01.2009 17:12 Uhr, Pierre Joye wrote:
Oe example with 229 characters: /Users/karsten/Sites/typo3v5/Data/Temporary/6e7991cd3e3f10e110df4a26825c1f8c/_www/Cache/Testing/Tags/%CLASS%F3_Widget_Persistence_MessageQueuePersistenceAspect/FLOW3_Reflection-F3_Widget_Persistence_MessageQueuePersistenceAspect For deeper nested namespaces this will get longer, add some deeper directory structure at the start and - bang. Now, I never ran into problems with paths being too long for anything I tried on Linux or Mac, so what limits exist? Admittedly I never thought about that much. Given we live in a world of terabytes I'd expect names to be virtually as long as I want. :)The problem is exactly the same on any OS, only the size varies. The limit is not higher either. What do you use as naming for your entries?
Btw, what do you do when the path len of the path where the cache is stored is closed from MAXPATHLEN (PHP_MAXPATHLEN in userland)? Given than MAXPATHLEN can be between 260 and 2048 (~), that' can happen easily.Never heard of that constant, thanks for pointing it out. The documentation doesn't explain it, is there some background information available somewhere? So, in the best case we hit the roof at ~2k? Good to know... Thanks, Karsten