Skip to content

Commit ca648c8

Browse files
committed
Add explanations for has_permissions()
1 parent 5be5ea4 commit ca648c8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libmamba/include/mamba/fs/filesystem.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,12 @@ namespace mamba::fs
11391139
return std::filesystem::last_write_time(path, new_time, std::forward<OtherArgs>(args)...);
11401140
}
11411141

1142-
// Check if we have modification rights on a path
1142+
/* Check if we have modification rights on a path.
1143+
* This function is not a wrapping on a of std::filesystem function, but it
1144+
* uses std::filesystem::status().
1145+
* Exceptions may be thrown by std::filesystem::status() if the path is not
1146+
* valid.
1147+
*/
11431148
bool has_permissions(const u8path&, const fs::perms&);
11441149

11451150
// void permissions(const path& p, perms prms, perm_options opts = perm_options::replace);

0 commit comments

Comments
 (0)