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 #484650] Tue, 08 September 2009 15:26
Kyle is currently offline 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
Previous Topic:TM3.1 Problem with "Export to Remote File System"
Next Topic:isLink not returning correct value for IRemoteFile
Goto Forum:
  


Current Time: Fri Sep 19 04:00:15 GMT 2014

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

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