more useful options | |
PerlMonks |
Re^2: fsyncing directoriesby betterworld (Curate) |
on Apr 27, 2010 at 12:09 UTC ( [id://837087]=note: print w/replies, xml ) | Need Help?? |
Thanks, File::Sync seems to work:
I should have done a CPAN search myself... However, IO::Handle is a core module, File::Sync isn't. As IO::Handle already has a sync() method (and perldoc POSIX documents that this is how to do fsync), it seems a bit excessive to pull in CPAN modules just because your file handle is a directory handle...
In Section
Seekers of Perl Wisdom
|
|