PTP
Release 7.0

org.eclipse.ptp.remote.core
Interface IRemoteFileManager


public interface IRemoteFileManager

Interface for managing resources on a remote system.


Method Summary
 java.lang.String getDirectorySeparator()
          Gets the directory separator on the target system.
 org.eclipse.core.filesystem.IFileStore getResource(java.lang.String path)
          Get the resource associated with path.
 java.lang.String toPath(java.net.URI uri)
          Convert URI to a remote path.
 java.net.URI toURI(org.eclipse.core.runtime.IPath path)
          Convert remote path to equivalent URI.
 java.net.URI toURI(java.lang.String path)
          Convert string representation of a remote path to equivalent URI.
 

Method Detail

getResource

org.eclipse.core.filesystem.IFileStore getResource(java.lang.String path)
Get the resource associated with path. IFileStore can then be used to perform operations on the file. The remote connection does not need to be open to use this method, but subsequent operations on the IFileStore that access the underlying remote filesystem may require the connection to be open.

Parameters:
path - path to resource
Returns:
the file store representing the remote path

getDirectorySeparator

java.lang.String getDirectorySeparator()
Gets the directory separator on the target system.

Returns:
String
Since:
4.0

toPath

java.lang.String toPath(java.net.URI uri)
Convert URI to a remote path. This path is suitable for direct file operations on the remote system. The remote connection does not need to be open to use this method.

Returns:
IPath representing the remote path

toURI

java.net.URI toURI(org.eclipse.core.runtime.IPath path)
Convert remote path to equivalent URI. This URI is suitable for EFS operations on the local system. The remote connection does not need to be open to use this method.

Parameters:
path - path on remote system
Returns:
URI representing path on remote system, or null if the path is invalid

toURI

java.net.URI toURI(java.lang.String path)
Convert string representation of a remote path to equivalent URI. This URI is suitable for EFS operations on the local system. The remote connection does not need to be open to use this method.

Parameters:
path - path on remote system
Returns:
URI representing path on remote system, or null if the path is invalid

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.