Boost C++ Libraries

PrevUpHomeNext

Type copy_options

boost::filesystem::copy_options — Option flags for copy and copy_file operations.

Synopsis

// In header: <boost/filesystem/operations.hpp>



enum copy_options { none, skip_existing, overwrite_existing, update_existing, 
                    synchronize_data, synchronize, ignore_attribute_errors, 
                    recursive, copy_symlinks, skip_symlinks, directories_only, 
                    create_symlinks, create_hard_links };

Description

These options can be combined using bitwise OR and passed to copy_file() and copy() operations to customize their behavior.

See Also: copy_file, copy.

none
Default. For copy_file: error if the target file exists. For copy: do not recurse, follow symlinks, copy file contents.
skip_existing
Don't overwrite the existing target file, don't report an error.
overwrite_existing
Overwrite existing file.
update_existing
Overwrite existing file if its last write time is older than the replacement file.
synchronize_data
Flush all buffered data written to the target file to permanent storage.
synchronize
Flush all buffered data and attributes written to the target file to permanent storage.
ignore_attribute_errors
Ignore errors of copying file attributes.
recursive
Recurse into sub-directories.
copy_symlinks
Copy symlinks as symlinks instead of copying the referenced file.
skip_symlinks
Don't copy symlinks.
directories_only
Only copy directory structure, do not copy non-directory files.
create_symlinks
Create symlinks instead of copying files.
create_hard_links
Create hard links instead of copying files.

PrevUpHomeNext