Opened 8 years ago

Last modified 7 years ago

#11057 new Bugs

fs::copy fails with FILE_ATTRIBUTE_REPARSE_POINT attribute

Reported by: loic.velut@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.57.0 Severity: Problem
Keywords: copy Cc:

Description

Platform : Windows 7 64bits

When using fs::copy on a regular file with Windows APL attributes (Archive, sparse file, reparse point), fs::copy returns error code BOOST_ERROR_NOT_SUPPORTED.

When passing though the fs::copy, the "from" file is not detected as a regular file walking to the "else" case.

With a little investigation, file status reports our file as a reparse file because of the REPARSE_POINT attribute.

Is this behaviour the expected one ? knowing that a direct call to fs::copy_file works.

Change History (1)

comment:1 by harris.pc@…, 7 years ago

The failure is explained in my recent email on the boost mailing list.

The problem is copy_file only copies regular files and directories, and reparse files should be treated as regular files (in my opinion).

See email for arguments.

Note: See TracTickets for help on using tickets.