return attributes & FILE_ATTRIBUTE_REPARSE_POINT;
}
-bool
-Path::canWrite() const {
- // FIXME: take security attributes into account.
- DWORD attr = GetFileAttributes(path.c_str());
- return (attr != INVALID_FILE_ATTRIBUTES) && !(attr & FILE_ATTRIBUTE_READONLY);
-}
-
bool
Path::canExecute() const {
// FIXME: take security attributes into account.