copy_option Enumeration

An enumeration that is used with copy_file and determines behavior if a destination file already exists.

enum class copy_option {
    fail_if_exists,
    overwrite_if_exists
    };

Members

Values

Name

Description

fail_if_exists

copy_file throws an exception if the destination file already exists.

overwrite_if_exists

copy_file overwrites the destination file if it already exists.

Requirements

Header: filesystem

Namespace: std::tr2::sys::copy_option

See Also

Reference

<filesystem>

Other Resources

C++ Standard Library Header Files