in reply to why does open ">..." sometimes touches the directory?
A simple open(FILE, ">existing_file") will not update the directory's mtime. On linux, the open just gets translated to the OS call
(as verified by strace). Either the open you're doing is not as straightforward as your example, or something else is modifying the directory.open("existing_file", O_WRONLY|O_CREAT|O_TRUNC, 0666)
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: why does open ">..." sometimes touches the directory?
by Mark_Galeck (Novice) on Feb 05, 2013 at 11:39 UTC | |
by parv (Parson) on Feb 05, 2013 at 11:50 UTC | |
by Anonymous Monk on Feb 05, 2013 at 11:45 UTC | |
by Anonymous Monk on Feb 05, 2013 at 13:30 UTC |
In Section
Seekers of Perl Wisdom