Re: [Tutor] How to check a files size

2006-06-29 Thread Kent Johnson
From: John Fouhy [EMAIL PROTECTED] On 29/06/06, Kent Johnson [EMAIL PROTECTED] wrote: See shutil.copyfile() Why isn't this function in the os module with the other file commands? I don't know why they are broken up in this way. The glob module also has some file access commands. J

Re: [Tutor] How to check a files size

2006-06-29 Thread Danny Yoo
Why isn't this function in the os module with the other file commands? I don't know why they are broken up in this way. The glob module also has some file access commands. For the most part, the 'os' module follows the interface functions that C provides to access the operating system. We

Re: [Tutor] How to check a files size

2006-06-28 Thread Andrew Robert
Perhaps this? stat = os.stat(self.file_name) file_size = stat[6] Thank you, Andrew Robert ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to check a files size

2006-06-28 Thread Magnus Wirström
Hi everyone. I would like to ask what is the best way to get the file size on a large file. the operation i'm trying to preform is to copy a large file to another drive using python file I/O commands. perhaps there is a better solution or a module that is doing this more easy? Thanks Magnus

Re: [Tutor] How to check a files size

2006-06-28 Thread Terry Carroll
On Thu, 29 Jun 2006, [ISO-8859-1] Magnus Wirstr?m wrote: I would like to ask what is the best way to get the file size on a large file. filesize = os.stat(filename).st_size ___ Tutor maillist - Tutor@python.org

Re: [Tutor] How to check a files size

2006-06-28 Thread Kent Johnson
From: Magnus Wirström [EMAIL PROTECTED] Hi everyone. I would like to ask what is the best way to get the file size on a large file. the operation i'm trying to preform is to copy a large file to another drive using python file I/O commands. perhaps there is a better solution or a

Re: [Tutor] How to check a files size

2006-06-28 Thread John Fouhy
On 29/06/06, Kent Johnson [EMAIL PROTECTED] wrote: See shutil.copyfile() Why isn't this function in the os module with the other file commands? -- John. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor