Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » isLink not returning correct value for IRemoteFile
isLink not returning correct value for IRemoteFile [message #582428] Tue, 08 September 2009 15:26
Kyle is currently offline KyleFriend
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

Then I call

Boolean test = rfileObj.isLink();
String classification = rfileObj.getClassification();
System.out.println("Linked: "+test);
System.out.println("class: "+classification);

Linked: false
class: directory

For I have 2.0.2 and
org.eclipse.rse.subsystems.files.ssh I have 2.1.0
target is a linux machine
Previous Topic:persistence of IHost custom properties
Next Topic:programmatically select a file in the "Remote Systems" view
Goto Forum:

Current Time: Wed Jul 28 18:25:40 GMT 2021

Powered by FUDForum. Page generated in 0.01616 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top