Skip to content

Commit 6045c84

Browse files
committed
FileInfo::isSymLink() did not work correctly
1 parent 8a9c41e commit 6045c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fileinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bool FileInfo::isDir() const
7777
bool FileInfo::isSymLink() const
7878
{
7979
std::error_code ec;
80-
fs::file_status status = fs::status(m_name,ec);
80+
fs::file_status status = fs::symlink_status(m_name,ec);
8181
return !ec && fs::is_symlink(status);
8282
}
8383

0 commit comments

Comments
 (0)