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 On Sun, 7 Feb 2016 6:57 PM Mahmoodreza Aarabi <[email protected]> wrote: > Hello to all > > I have a problem that probabely you faced with it, in windows when we copy > a file from a source and paste it in a long path (i mean a deep path) it > does not paste. > Or if you have a long path and you want to create a simple text file in it > you can just write some words in its name. > > I had some recearch about it and i find that we just can have a > path+filename with maximum 244 character. > Now problem is that when we want to open a file in maya that is in the end > of a long path that its address is more than 244 characters, maya will > crash. > > There is any way that we can remove this limitation with python? because > at the end of R&D i need to implement it with python, and i don't want to > be worried about the lenght of the path. > > Example: > > D:\path\to\the\project\of\testingPathOfFolders\firstFolder\subfolder1\subfolder2\subfolder3\subfolder4\this\path\is\very\very\long\path\and\it\will\create\problem\for\reading\and\writing\such\maya\files\like\ > project_modeling_filename_author_date_test.ma > > [253] character in this path (just a dummy example) > > thanks > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/eb7ffc19-616d-48fa-b14d-12327f40bfd6%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/eb7ffc19-616d-48fa-b14d-12327f40bfd6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. 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. For more options, visit https://groups.google.com/d/optout.
