| 501 | } |
| 502 | |
| 503 | FileRef MountSystem::createFile(const Path& path) |
| 504 | { |
| 505 | Path np = _normalize(path); |
| 506 | FileSystemRef fs = _getFileSystemFromList(np); |
| 507 | |
| 508 | if (fs && fs->isReadOnly()) |
| 509 | { |
| 510 | _log(String::ToString("Cannot create file %s, filesystem is read-only", path.getFullPath().c_str())); |
| 511 | return NULL; |
| 512 | } |
| 513 | |
| 514 | if (fs != NULL) |
| 515 | return static_cast<File*>(fs->create(np,FileNode::File).getPointer()); |
| 516 | return NULL; |
| 517 | } |
| 518 | |
| 519 | DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs) |
| 520 | { |
no test coverage detected