On Mon, Mar 21, 2011 at 2:43 AM, Christian Heimes wrote:
> I'm sorry if I offended you in any way. I had to clarify the meaning of
> st_ctime many times in the past because people confused it for the
> creation ts of the file.
>
Apologies if I got too defensive. I agree that it was worth pointin
Am 21.03.2011 03:32, schrieb Dan Stromberg:
> Well, it is, and it's not. It was originally called "creation time", but
> many today find "change time" a better description of what it actually does,
> sort of retroactively changing what the "c" means. This is because the
> ctime reflects the chang
On Sun, Mar 20, 2011 at 7:12 PM, Christian Heimes wrote:
> Am 21.03.2011 01:40, schrieb Dan Stromberg:
> > 1) If you want to set the ctime to the current time, you can os.rename()
> the
> > file to some temporary name, and then quickly os.rename() it back.
> >
> > 2) You can sort of set a file to
Am 21.03.2011 01:40, schrieb Dan Stromberg:
> 1) If you want to set the ctime to the current time, you can os.rename() the
> file to some temporary name, and then quickly os.rename() it back.
>
> 2) You can sort of set a file to have an arbitrary ctime, by setting the
> system's clock to what you
is actually a 'new' file?
>
> os.utime('sum.py', (time.time(),time.time())
In general POSIX OS don't have the means to store and return the
creation time of a file. Although os.stat() returns a struct that
contains st_ctime, it's NOT the creation time sta
I used os.uname to succesfully change the access and mod times of
> a file. My question is, is there any other date store for a file that
> indicates the creation time, or is it impossible to detect that a file
> with an older mod/access time is actually a 'new' file?
>
>
I used os.uname to succesfully change the access and mod times of
a file. My question is, is there any other date store for a file that
indicates the creation time, or is it impossible to detect that a file
with an older mod/access time is actually a 'new' file?
os.utime('sum.
Are you able change this directories attributes in a command shell or with
explorer?If so, have you tried win32file.SetFileAttributes()?
--
http://mail.python.org/mailman/listinfo/python-list
I'm working on a backup scheme that looks at modification times. To
run some tests I'd like to be able to set the modification time of
directories (WinXPsp2, Python-2.3.4)
os.utime() works well with files but throws a permission error with
directories. See code below.
Q: Can this be do