@Override
 protected Collection<TransferFile> fetchChildren() {
   try {
     return remoteClient.listFiles(this);
   } catch (RemoteException ex) {
     LOGGER.log(Level.INFO, "Error while getting children for " + this, ex);
     RemoteUtils.processRemoteException(ex);
   }
   return Collections.emptyList();
 }
 // #204874 - some servers return ending '/' for directories => remove it
 private String getParentDirectory() {
   synchronized (file) {
     return RemoteUtils.sanitizeDirectoryPath(file.getParentDirectory());
   }
 }