[Bf-python] Problems

Willian Padovani Germano wgermano at ig.com.br
Thu Jul 31 06:07:52 CEST 2003


Hi,

From: "Peter Amstutz" <tetron at interreality.org>
> Incidentally, you can use the system call fstat() on a directory to get
> its last modified time, which will be the last time that the contents of
> the directory changed (a file was added/deleted/renamed [1]).  I doubt it
> would be particularly expensive to check this each time the scripts menu
> is opened and re-scan the directory as necessary.  Certainly it would be a
> bit more convenient for users :-)
>
> [1] It may even be updated every time any file in the directory is changed
> as well, but I'm not sure.

Hey, Peter, thanks for the info : ), I had completely forgotten about this
possibility.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list