| 554 | |
| 555 | |
| 556 | Path MountSystem::_normalize(const Path& path) |
| 557 | { |
| 558 | Path po = path; |
| 559 | |
| 560 | // Assign to cwd root if none is specified. |
| 561 | if( po.getRoot().isEmpty() ) |
| 562 | po.setRoot( mCWD.getRoot() ); |
| 563 | |
| 564 | // Merge in current working directory if the path is relative to |
| 565 | // the current cwd. |
| 566 | if( po.getRoot().equal( mCWD.getRoot(), String::NoCase ) && po.isRelative() ) |
| 567 | { |
| 568 | po.setPath( Path::CompressPath( Path::Join( mCWD.getPath(),'/',po.getPath() ) ) ); |
| 569 | } |
| 570 | return po; |
| 571 | } |
| 572 | |
| 573 | bool MountSystem::copyFile(const Path& source, const Path& destination, bool noOverwrite) |
| 574 | { |