ActivitySim / activitysim

An Open Platform for Activity-Based Travel Modeling
https://activitysim.github.io
BSD 3-Clause "New" or "Revised" License
191 stars 98 forks source link

Avoid long trace file names #409

Open bstabler opened 3 years ago

bstabler commented 3 years ago
Idea Level-of-effort Notes Priority
Avoid long trace file names Hours Reduce filenames (especially in estimation mode and for tracing) because of Windows filename limits. Low
bstabler commented 3 years ago

@stefancoe - it would be good to create folders too to help organize all the output files

bstabler commented 3 years ago

It's pretty simple to turn on support for long file names on Windows 10. See https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/ and:

image

I did this, but I also needed to turn off the assertation in activitysim so we should make this assertation optional and user configurable.

bettinardi commented 3 years ago

Not all government employees have "easy" access to their registry files or other admin level changes. Additionally, this is going to be one of those really frustrating things to remember anytime someone gets a new machine. I recommended attempting to find a solution that works in Windows default.

bstabler commented 3 years ago

Agreed. Another work around is to setup the model in a short folder name location such as c:\activitysim.

bettinardi commented 3 years ago

I don't think this issue should be resolved with work arounds. The issue should be resolved with a fix/soultion.

guyrousseau commented 3 years ago

As for file name length, ARC is a little more hesitant with this one. The length requirement was originally set because of the constraints of binary itself (255) and consistent across many operating systems. While modern operating systems are capable of addressing outside this original bound, not all client software installed and running on these operating systems are capable of addressing files at extended length. ARC would proceed with great caution, as there is potential for data loss or corruption, should the aforementioned software packages on the servers and management systems, such as ARC's backup software, prove unable to address files at the length specified above.