1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

SSH Tracing: add filename to getFile

This commit is contained in:
Martin Oberhuber 2007-04-06 10:07:26 +00:00
parent c013e2aede
commit 8022c9712d

View file

@ -296,7 +296,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
List results = new ArrayList(); List results = new ArrayList();
if (fDirChannelMutex.waitForLock(monitor, fDirChannelTimeout)) { if (fDirChannelMutex.waitForLock(monitor, fDirChannelTimeout)) {
try { try {
Vector vv=getChannel("SftpFileService.internalFetch").ls(parentPath); //$NON-NLS-1$ Vector vv=getChannel("SftpFileService.internalFetch: "+parentPath).ls(parentPath); //$NON-NLS-1$
for(int ii=0; ii<vv.size(); ii++) { for(int ii=0; ii<vv.size(); ii++) {
Object obj=vv.elementAt(ii); Object obj=vv.elementAt(ii);
if(obj instanceof ChannelSftp.LsEntry){ if(obj instanceof ChannelSftp.LsEntry){
@ -314,7 +314,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
} }
} }
} }
Activator.trace("SftpFileService.internalFetch ok"); //$NON-NLS-1$ Activator.trace("SftpFileService.internalFetch <--"); //$NON-NLS-1$
} catch(Exception e) { } catch(Exception e) {
//TODO throw new SystemMessageException. //TODO throw new SystemMessageException.
//We get a "2: No such file" exception when we try to get contents //We get a "2: No such file" exception when we try to get contents