if( uri.getScheme() == null && !defaultIsLocal ) // we want to sync
{
Path localPath = localFS.makeQualified( path );
if( !exists( localFS, localPath ) )
throw new FlowException( "path not found: " + localPath );
localPaths.put( localPath.getName(), localPath );
remotePaths.put( localPath.getName(), defaultFS.makeQualified( new Path( remoteRootPath, path.getName() ) ) );
}
else if( localFS.equals( getFileSystem( config, path ) ) )
{
if( !exists( localFS, path ) )
throw new FlowException( "path not found: " + path );
Path localPath = localFS.makeQualified( path );
localPaths.put( localPath.getName(), localPath );
}
else
{
if( !exists( defaultFS, path ) )
throw new FlowException( "path not found: " + path );
Path defaultPath = defaultFS.makeQualified( path );
remotePaths.put( defaultPath.getName(), defaultPath );
}