Re: Fill a Server

2004-12-15 Thread [EMAIL PROTECTED]
I think you solved it Fredrik. The first ten folders looked like this: D:\0\1\2\3\4\5\6\7\8\9 22 Chars long. The rest looked like this: \10\11\12\13\82\83\84 ~ 222 CHars long. Subdir 84 had one file in it named XXX.bat That file broke the 255 limit, then subdir 85 wasn't created

Re: Fill a Server

2004-12-15 Thread [EMAIL PROTECTED]
You are correct Peter, the exception read something like this: "Folder 85 not found." I am paraphrasing, but that is the crux of the error. It takes about an hour to produce the error so if you want an exact quote from the exception, let me know and give me awhile. I looked through the nested dir

Re: Fill a Server

2004-12-15 Thread Peter Hansen
[EMAIL PROTECTED] wrote: [snip code involving copyfile:] shutil.copyfile(os.path.join(root, f), The problem with this is that it only copies about 35 GB/hour. I would like to copy at least 100 GB/hour... more if possible. I have tried to copy from the IDE CD drive to the SATA array with the same r

Fill a Server

2004-12-15 Thread [EMAIL PROTECTED]
I think this is a silly task, but I have to do it. I have to fill a file server (1 TB SATA RAID Array) with files. I wrote a Python script to do this, but it's a bit slow... here it is: import shutil import os import sys import time src = "G:" des = "C:scratch" os.chdir(src) try: for x in xrange

Re: Fill a Server

2004-12-15 Thread Fredrik Lundh
>> Also, my first attempt at this did a recursive copy creating subdirs in >> dirs as it copied. It would crash everytime it went 85 subdirs deep. >> This is an NTFS filesystem. Would this limitation be in the filesystem >> or Python? > > see the "Max File Name Length" on this page (random google

Re: Fill a Server

2004-12-15 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > Also, my first attempt at this did a recursive copy creating subdirs in > dirs as it copied. It would crash everytime it went 85 subdirs deep. > This is an NTFS filesystem. Would this limitation be in the filesystem > or Python? see the "Max File Name Length" on this