Package com.sos.VirtualFileSystem.Interfaces

Examples of com.sos.VirtualFileSystem.Interfaces.ISOSVirtualFile.rename()


      }

      if (strOp.equalsIgnoreCase("rename")) {
        String strNewFileName = MakeFileNameReplacing(strSourceFileName);
        logger.debug(String.format("filename %1$s, renamed to %2$s", strSourceFileName, strNewFileName));
        objSourceFile.rename(strNewFileName);
        this.setStatus(enuTransferStatus.renamed);
        return;
      }

      ISOSVirtualFile objTargetFile = objDataTargetClient.getFileHandle(MakeFullPathName(objOptions.TargetDir.Value(), strTargetFileName));
View Full Code Here


          if (objListItem.FileExists() == true) {
            objF = objDataTargetClient.getFileHandle(strToFilename);
            objF.delete();
          }
          objF = objDataTargetClient.getFileHandle(MakeFullPathName(objOptions.TargetDir.Value(), strFromFilename));
          objF.rename(strToFilename);
        }
      }
    }
    catch (Exception e) {
      e.printStackTrace(System.err);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.