Page 1 of 1
function to know the created date of a folder
Posted: Wed Sep 12, 2007 6:29 pm
by johnhelen
Hello all
Could you please tell me the function to know the created date of a folder
Many thanks
john
Posted: Wed Sep 12, 2007 6:44 pm
by mrkite
stat() would do it.
Posted: Wed Sep 12, 2007 6:46 pm
by Zoxive
If your on linux, you can use
exec() along with some linux command to show it..
(Just an example, im still new to linux)
Code: Select all
ls -l --time=ctime /var | grep "test"
Result
Code: Select all
drwxr-xr-x 18 kyle root 4096 2007-09-12 19:44 test
Posted: Wed Sep 12, 2007 7:01 pm
by johnhelen
Thanks
But stat() function is only for file, not for directory
exec() function is for only linux and I need for window as well
I need this as I need to delete folders (tmp) that is two weeks old in my system
Regards
Posted: Wed Sep 12, 2007 7:12 pm
by mrkite
johnhelen wrote:
But stat() function is only for file, not for directory
Since when? It works on directories just fine. At least it does under unix.. maybe windows is different?