I had the following code run with Python for Delphi. It works. while IsCDriveNotEnoughSpace(): dirlist = nt.listdir(CPath) listsize = len(dirlist) if listsize > 2: file = dirlist[0] nt.remove(CPath + dirlist[0]) PyLog(file + " in C:\logs has been deleted.") if listsize == 2: break
When I added the line "mtime = nt.stat(CPath+file)[8]", it failed. Do you have any idea or suggestion? ktxn1020 wrote: > It works fine independently, but still not work when run with Python > for Delphi. -- http://mail.python.org/mailman/listinfo/python-list