| 517 | } |
| 518 | |
| 519 | DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs) |
| 520 | { |
| 521 | Path np = _normalize(path); |
| 522 | if (fs.isNull()) |
| 523 | fs = _getFileSystemFromList(np); |
| 524 | |
| 525 | if (fs && fs->isReadOnly()) |
| 526 | { |
| 527 | _log(String::ToString("Cannot create directory %s, filesystem is read-only", path.getFullPath().c_str())); |
| 528 | return NULL; |
| 529 | } |
| 530 | |
| 531 | if (fs != NULL) |
| 532 | return static_cast<Directory*>(fs->create(np,FileNode::Directory).getPointer()); |
| 533 | return NULL; |
| 534 | } |
| 535 | |
| 536 | FileRef MountSystem::openFile(const Path& path,File::AccessMode mode) |
| 537 | { |
no test coverage detected