Monks of Nepal and abroad, good morning,
I've been wanting to scan my hard drive to find files & folders that'd changed (ie created/modified/deleted). There's a simple of scanning the entire drive and checking to see whether last modified dates have been changed - but it's very time consuming.
Hence, I thought of another way : firstly there's no need to scan if no changes have been made. So a disk scan should only be triggered when a change is detected - that bit was easily solved with
Win32::ChangeNotify->new("c:\\",1,"LAST_WRITE");. However this bit doesn't tell me what's changed or where.
Therefore I thought of using a folder's last accessed property, but it so happens that this property doesn't give a complete timestamp - hence it's not precise enough. As for the modified property of a folder, it is not reflected up in a folder tree : if a change occurs 3 folders down in depth then only the directly parent folder is affected.
I'm basically stalling at this point - on one hand I've got this great tool but it returns a "crappy" timestamp and on the other hand I have this really complete timestamp but unfortunately, it's not being reflected on parent folders.
There is some hope however with
FindFirstChangeNotification
, a C++ method...
Has anyone ever wanted to look up modified files in an efficient way ? Has anyone advice I could use, tips, or help ?
Thanks so much guys...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.