I haven't dealt with this problem, but some quick searching turned up a kind of "extended" path notation :
https://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#maxpath
Something like:
\\?\D:\path\...
Does this actually work?
Justin
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/eb7ffc19-616d-48fa-b14d-12327f40bfd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA28K76LYfWFMcS%2B_DFxK_maej_hHh67ck9zhsSrDpYExw%40mail.gmail.com.
Sadly, one cannot make use of paths longer than 256 characters on the Windows platform. :(
You might be able to work around it in specific scenarios, but as you have discovered, there may be other scenarios that might not work and where a solution is out of your control; such as in Maya. What I’ve found is that most applications do not support extended paths and have since given up trying to find a way to work with it proper.
As a workaround, you can try:
a) Create a junction from a deeply nested path. For example, if your path is c:\long\path\to\file.jpg, then create a junction from c:\long\path to c:\short and you will be able to reach your file at c:\short\to\file.jpg. Or..
b) Share the same point within the directory and map it to a drive letter; such as z:\.
But in general, I would avoid ever getting to such lengths if possible.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADvbQwKuKnm%2Bewf_R9AT7JSak6QK8o2bVJQ1G%2BHdTd5GWr67Rw%40mail.gmail.com.
my question here is that based on your experiences, directory structure in studios is long when an artist want to access to a file with different department and works?and in maya we can't save file more than 260 character but interesting point is that when i want to open the saved file (saved in the middle of path) maya crashes :)yes, it works in creating nested deep folders with python and directory with any length will create with it, but in windows does not open the end folder when we use the path.Thank you Justini had some research on this
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADvbQwKuKnm%2Bewf_R9AT7JSak6QK8o2bVJQ1G%2BHdTd5GWr67Rw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3C4U9GDrygsS7YqgdQAHTMRPC0tQXFPaa4u%3DV%2B2fFr0Q%40mail.gmail.com.
Sing a song with me everyone! "Weeeee looooove Windows!"
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADvbQwLoxoZ5OnfU36zE5wVGJje_ujKW9pY_PKFzT0j39YFdFw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2RORu8v8SBLF72VNMsmUuo6Q5igxemtMruy3R9Bta0Lw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7a04nZrBOtJx5JNBZAoK%3DCy6f01nR0QGi3wBZARcoMdxA%40mail.gmail.com.