| 946 | } |
| 947 | |
| 948 | bool MountSystem::isDirectory(const Path& path, FileSystemRef fsRef) |
| 949 | { |
| 950 | FileNode::Attributes attr; |
| 951 | |
| 952 | bool result = false; |
| 953 | if (fsRef.isNull()) |
| 954 | { |
| 955 | if (getFileAttributes(path, &attr)) |
| 956 | result = (attr.flags & FileNode::Directory) != 0; |
| 957 | } |
| 958 | else |
| 959 | { |
| 960 | FileNodeRef fnRef = fsRef->resolve(path); |
| 961 | if (!fnRef.isNull() && fnRef->getAttributes(&attr)) |
| 962 | result = (attr.flags & FileNode::Directory) != 0; |
| 963 | } |
| 964 | return result; |
| 965 | } |
| 966 | |
| 967 | bool MountSystem::isReadOnly(const Path& path) |
| 968 | { |
no test coverage detected