Opened 9 years ago

Last modified 7 years ago

#9816 assigned Bugs

boost::filesystem::is_empty does not work for symbolic links on Windows

Reported by: Nils Brinkmann <monsdar+boost@…> Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.55.0 Severity: Problem
Keywords: windows, symlink, is_empty Cc:

Description

Hi,

I'm using boost::filesystem::is_empty() to check if configuration files I'm using are empty. Due to our software deployment these files are mostly symbolic links created with the Windows 7 internal mklink command.

I've used Boost 1.46.1 in the past for this and everything worked fine. Lastly I upgraded to 1.55.0 and found out that is_empty does not work anymore.

I at first asked at Stackoverflow for some help: Boost::filesystem::is_empty() returns false for Symlinks

I also created a Github project which reproduces the problem: Github - BoostSymLinkError

Change History (1)

comment:1 by Beman Dawes, 7 years ago

Status: newassigned

Also see #9824

Note: See TracTickets for help on using tickets.