File Directory Path Length for Sessions
Just making a note in case someone else has this issue. I just tried to create a new session for photos I ingested into a folder using Photo Mechanic. It was a rather long file name. When I went to create a session in that folder, which is my modus operandi, it said that it couldn't find the file <drive:/"directory name"> (substitute in an actual drive and long directory name). When I shortened the directory name, the session was able to be successfully created.
This was on a PC running Windows 10, latest release for today, Ryzen 5 3600 CPU with 32 Gigs of RAM, and an NVIDIA 1650 graphics card.
-
William,
Did you happen to identify what the maximum possible path length seemed to be?
I have seen a suggestion that the default is 256 characters but that this value can be adjusted if required. Whether adjusting the Windows 10 value would be a wise thing to do in a wider context I have no idea.
If is also possible that the (Max_Path) value is nota factor for the problem you experienced in this case.
0 -
Well the basedir directory path was certainly less than 256 characters. However the session directory name was quite long. And then you guys create a sub-directory with the same name as the session directory (if like I do I give it a session name that is the same as the session directory). And then in that you give the session databases file the same name. And it was complaining it couldn't find the cosessiondb (IIRC). So I'm thinking that the total length of the path to the session db (including the file name) before I shortened the session directory name must have been just slightly over 256 characters. So maybe it couldn't create the file and so couldn't find the file. Vicious circle. Anyway, the total length of the path to the sessiondb file, including the file name, is not 216 characters. And it worked. Coming from a Unix/Linux dev background, I never understood this limitation. I suspect it doesn't happen on Macs, being BSD based. Cheers.
0
Post is closed for comments.
Comments
2 comments