in reply to stat to identify files?

You could use DB_File to store every filename (with complete path) that you link to. This gives you a persistent hash that you can check against (if the path/file is not already in the hash, then you have never linked to it before, etc.) This should work fine unless you have more than millions of files to keep track of.

Replies are listed 'Best First'.
Re^2: stat to identify files?
by Skeeve (Parson) on Jun 12, 2008 at 06:06 UTC

    That's not needed. Thanks anyway.

    I can create the hash as described above. This also has the advantage that, should a link be removed, it will be recreated later, in the second run.

    The question was merely about the devno/inode tupel.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e