| 658 | } |
| 659 | |
| 660 | FileRef MountSystem::createFile(const Path& path) |
| 661 | { |
| 662 | Path np = _normalize(path); |
| 663 | FileSystemRef fs = _getFileSystemFromList(np); |
| 664 | |
| 665 | if (fs && fs->isReadOnly()) |
| 666 | { |
| 667 | _log(String::ToString("Cannot create file %s, filesystem is read-only", path.getFullPath().c_str())); |
| 668 | return NULL; |
| 669 | } |
| 670 | |
| 671 | if (fs != NULL) |
| 672 | return static_cast<File*>(fs->create(np,FileNode::File).getPointer()); |
| 673 | return NULL; |
| 674 | } |
| 675 | |
| 676 | DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs) |
| 677 | { |
no test coverage detected