| 674 | } |
| 675 | |
| 676 | DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs) |
| 677 | { |
| 678 | Path np = _normalize(path); |
| 679 | if (fs.isNull()) |
| 680 | fs = _getFileSystemFromList(np); |
| 681 | |
| 682 | if (fs && fs->isReadOnly()) |
| 683 | { |
| 684 | _log(String::ToString("Cannot create directory %s, filesystem is read-only", path.getFullPath().c_str())); |
| 685 | return NULL; |
| 686 | } |
| 687 | |
| 688 | if (fs != NULL) |
| 689 | return static_cast<Directory*>(fs->create(np,FileNode::Directory).getPointer()); |
| 690 | return NULL; |
| 691 | } |
| 692 | |
| 693 | FileRef MountSystem::openFile(const Path& path,File::AccessMode mode) |
| 694 | { |
no test coverage detected