windows and file names > 256 bytes
toby at tobiah.org
Tue Jul 7 17:56:00 CEST 2015
On 06/24/2015 10:45 AM, Albert-Jan Roskam wrote:
> Consider the following calls, where very_long_path is more than 256 bytes:
>  os.mkdir(very_long_path)
>  os.getsize(very_long_path)
>  shutil.rmtree(very_long_path)
> I am using Python 2.7 and  and  fail under Windows XP  fails
> My questions:
> 1. How can I get the file size of very long paths under XP?
As a workaround, could you use multiple calls to os.chdir()
to get to where you need to do your operations, then use
relative paths from there?
More information about the Python-list