| 484 | |
| 485 | |
| 486 | Path MountSystem::_normalize(const Path& path) |
| 487 | { |
| 488 | Path po = path; |
| 489 | |
| 490 | // Assign to cwd root if none is specified. |
| 491 | if( po.getRoot().isEmpty() ) |
| 492 | po.setRoot( mCWD.getRoot() ); |
| 493 | |
| 494 | // Merge in current working directory if the path is relative to |
| 495 | // the current cwd. |
| 496 | if( po.getRoot().equal( mCWD.getRoot(), String::NoCase ) && po.isRelative() ) |
| 497 | { |
| 498 | po.setPath( Path::CompressPath( Path::Join( mCWD.getPath(),'/',po.getPath() ) ) ); |
| 499 | } |
| 500 | return po; |
| 501 | } |
| 502 | |
| 503 | FileRef MountSystem::createFile(const Path& path) |
| 504 | { |