isLink not returning correct value for IRemoteFile [message #484650] |
Tue, 08 September 2009 15:26 |
Kyle Messages: 16 Registered: July 2009 |
Junior Member |
|
|
I have a symlink /tmp/tmp4 that is points to another dir /tmp/tmp3
However, when I call isLink() on the IRemoteFile, it says it is not a
symlink. If I look at the classification, it says it is a directory.
The way I get my remote file:
In the RSECorePlugin I have an entry for my host hostname, and the
conenction has been established.
I have an IHost object myHost
String path = "/tmp/tmp4";
IRemoteFileSubSystem fss = RemoteFileUtility.getFileSubSystem(myHost);
IRemoteFile rfileObj = fss.getRemoteFileObject(path, new
NullProgressMonitor());
Then I call
Boolean test = rfileObj.isLink();
String classification = rfileObj.getClassification();
System.out.println("Linked: "+test);
System.out.println("class: "+classification);
Output:
Linked: false
class: directory
For org.eclipse.tm.terminal.ssh I have 2.0.2 and
org.eclipse.rse.subsystems.shells.ssh,
org.eclipse.rse.subsystems.files.ssh I have 2.1.0
target is a linux machine
|
|
|
Powered by
FUDForum. Page generated in 0.02429 seconds