| 793 | } |
| 794 | |
| 795 | bool MountSystem::isDirectory(const Path& path, FileSystemRef fsRef) |
| 796 | { |
| 797 | FileNode::Attributes attr; |
| 798 | |
| 799 | if (fsRef.isNull()) |
| 800 | { |
| 801 | if (getFileAttributes(path,&attr)) |
| 802 | return attr.flags & FileNode::Directory; |
| 803 | return false; |
| 804 | } |
| 805 | else |
| 806 | { |
| 807 | FileNodeRef fnRef = fsRef->resolve(path); |
| 808 | if (fnRef.isNull()) |
| 809 | return false; |
| 810 | |
| 811 | FileNode::Attributes attr; |
| 812 | if (fnRef->getAttributes(&attr)) |
| 813 | return attr.flags & FileNode::Directory; |
| 814 | return false; |
| 815 | } |
| 816 | } |
| 817 | |
| 818 | bool MountSystem::isReadOnly(const Path& path) |
| 819 | { |
no test coverage detected