Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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
, 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...

In reply to smart way of scanning hard drive for file & folder changes by Foggy Bottoms

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 11:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found