help with file path exceeding 255 characters

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed May 14 01:48:01 EDT 2008


En Tue, 13 May 2008 18:06:13 -0300, <yguan08 at gmail.com> escribió:

> On May 13, 3:49 pm, Arnaud Delobelle <arno... at googlemail.com> wrote:
>> ygua... at gmail.com writes:
>> > I have trouble of obtaining the file size of a file because the
>> > fullpath exceeds 255 characters. I get this message with

> WindowsError: [Error 206] The filename or extension is too long: '\\\\?
> \\UNC\\LOSSSFS002\\NWE_TECHNICAL\\05. UK\\Schiehallion (204_25a)\
> \Amos&Burke_P559\\07. Technical (Subsurface)\\06. Well Planning\\Amos\
> \Daily Reports\\Wireline\\final_204_25a_8z\\204_25a_8z\\Run_1A\
> \HRLA_SP_DSI_PEX_HNGS_ECRD\\ANCILLARY\\Amos_204_25a-8Z_GR_to_surface_3-
> Mar-2008_DSI_HRLA_TLD_MCFL_047PUC.las'

In addition to starting with \\?\UNC\, the path has to be an Unicode  
string, and already normalized (that is, it cannot contain . nor ..  
components)

-- 
Gabriel Genellina




More information about the Python-list mailing list