>> 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.
> 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 comma
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
> 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
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
http://mail.python.org/mailman/l
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 Wi
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