Hey justin
i created my path with "\\?\D:\path\" that you said.
do you believe that it is not remove now? with any permission!!!
:D

On Sun, Feb 7, 2016 at 10:50 PM, Mahmoodreza Aarabi <[email protected]>
wrote:

> Yes man. it was helpfull. now i have to use windows.
> I try to use relative Paths
> Btw, thanks.
> :)
>
> On Sun, Feb 7, 2016 at 10:15 PM, Justin Israel <[email protected]>
> wrote:
>
>>
>>
>> On Sun, 7 Feb 2016 10:02 PM Mahmoodreza Aarabi <[email protected]>
>> wrote:
>>
>>> Thank you Justin
>>> i had some research on this
>>> 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.
>>>
>>> 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 :)
>>>
>>> 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?
>>>
>>
>> This specific small limitation is windows based, and the studios I worked
>> for use Linux or OSX. So I haven't hit a path max or filename max problem
>> yet.
>> I've seen some generic code that tries to account for windows
>> compatibility by using chdir as it traverses the filesystem, so that it can
>> always refer to paths with a shorter relative name. Does that help at all?
>> Might not help in all cases of Maya though. But in scripts it might?
>>
>>
>>> thanks
>>>
>>> On Sun, Feb 7, 2016 at 10:56 AM, Justin Israel <[email protected]>
>>> wrote:
>>>
>>>> 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
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA28K76LYfWFMcS%2B_DFxK_maej_hHh67ck9zhsSrDpYExw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>
>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> Bests,
>>> madoodia
>>>
>>> --
>>> 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/CADvbQwKuKnm%2Bewf_R9AT7JSak6QK8o2bVJQ1G%2BHdTd5GWr67Rw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CADvbQwKuKnm%2Bewf_R9AT7JSak6QK8o2bVJQ1G%2BHdTd5GWr67Rw%40mail.gmail.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/CAPGFgA3C4U9GDrygsS7YqgdQAHTMRPC0tQXFPaa4u%3DV%2B2fFr0Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3C4U9GDrygsS7YqgdQAHTMRPC0tQXFPaa4u%3DV%2B2fFr0Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
>
> Bests,
> madoodia
>



-- 


Bests,
madoodia

-- 
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/CADvbQwLoxoZ5OnfU36zE5wVGJje_ujKW9pY_PKFzT0j39YFdFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to