fackz


Member since 08/14/2008

6 snippets

10838 profile views

1 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

fackz's Recent SnippetsTagged files



« Prev 1 Next »
This example shows how to delete specific files after a given time span. This works good for cleaning cached files.
1 1087 posted 15 years ago by fackz
This is another way to get a list of files ordered by upload time.
1 1543 posted 15 years ago by fackz
count files in a given dir
2 1324 posted 16 years ago by fackz
delete all files in a directory that are more than 7 days old.
4 1669 posted 16 years ago by fackz
The .jpg extension can be changed to any extension. So if you want to pull out only .txt files, you just need to replace the .jpg with .txt. If you want to list ALL files, just remove the condition.
1 1576 posted 16 years ago by fackz
This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The snippet also calculates how much time passed since the file’s content was changed.
2 2090 posted 16 years ago by fackz
« Prev 1 Next »