Re: Invalid data-time stamps

2005-03-07 Thread John W. Krahn
Bret Goodfellow wrote: Hi all, Hello, I am attempting to list out the contents of a directory, and print the last time accessed. The data-time is not correct though. I am running this code on a Windows XP workstation. There doesn't seem to be a real easy way to get the timestamps of directories.

Re: Invalid data-time stamps

2005-03-07 Thread Vladimir D Belousov
Hallo! Try to change directory to "$ARGV[0]" before open: chdir($ARGV[0]) || die "Cannot change dir: $!\n"; opendir $DIRHANDLE, "./"; . And (may be) It is better to use lstat(2) instead of stat(2) ? In this case there will be correct dates of symbolic links. Bret Goodfellow wrote: Hi all, I am