NAME
MacOSX::File::Exchange - Perl access to the exchangedata system call
SYNOPSIS
use MacOSX::File::Exchange;
exchangedata("newfile", "oldfile");
or
use MacOSX::File::Exchange qw(:all);
exchangedata("newfile", "oldfile", FSOPT_NOFOLLOW);
DESCRIPTION
The Darwin/Mac OS X system call exchangedata
atomically exchanges the contents and modification dates of two regular files, leaving all other metadata unchanged (this includes the inode numbers).
Expected arguments are two path strings and a flags integer. An omitted flags argument is interpreted as 0.
Available flags:
- FSOPT_NOFOLLOW
-
Do not follow leaf symlinks in paths.
EXPORTS
SEE ALSO
exchangedata(2) in your Darwin manual.
AUTHOR
Bo Lindbergh, <blgl@stakcen.kth.se>
COPYRIGHT AND LICENSE
Copyright (C) 2013 by Bo Lindbergh
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.9 or, at your option, any later version of Perl 5 you may have available.