Class FilesOld

java.lang.Object
com.netlang.io.FilesOld

public class FilesOld extends Object
The Log class
  • Constructor Details

    • FilesOld

      public FilesOld()
      Initializes a newly created Log
  • Method Details

    • remove

      public static void remove(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException
      Remove files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • remove

      public static void remove(com.netlang.session.NetlangSession session, String resourceId, String path, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Remove files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • remove

      public static void remove(String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • remove

      public static void remove(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) throws com.net4z.APIException
      Remove files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • remove

      public static void remove(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, com.net4z.CompletionHandler completion, FileOptions options) throws com.net4z.APIException
      Remove files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • remove

      public static void remove(com.netlang.session.NetlangSession session, String resourceId, String[] paths, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Remove files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • move

      public static void move(String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • move

      public static void move(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException
      Move files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • move

      public static void move(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, com.net4z.CompletionHandler completion, FileOptions options) throws com.net4z.APIException
      Move files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • getFile

      public static String getFile(com.netlang.session.NetlangSession session, String resourceId, String path, String localDestinationPath, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Get file
      Parameters:
      resourceId -
      path -
      localDestinationPath -
      completion -
      Throws:
      com.net4z.APIException
    • getFiles

      public static String getFiles(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, String localDestinationPath, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Get file
      Parameters:
      resourceId -
      path -
      localDestinationPath -
      completion -
      Throws:
      com.net4z.APIException
    • mkdir

      public static void mkdir(String resourceId, String path) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • mkdir

      public static void mkdir(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException
      Parameters:
      resourceId -
      path -
      localDestinationPath -
      completion -
      Throws:
      com.net4z.APIException
    • rename

      public static void rename(com.netlang.session.NetlangSession session, String resourceId, String frompath, String topath) throws com.net4z.APIException
      Move file
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • moveFile

      public static void moveFile(String fromResourceId, String frompath, String toResourceId, String topath) throws com.net4z.APIException
      Move file
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • moveFile

      public static void moveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) throws com.net4z.APIException
      Move file
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • moveFile

      public static void moveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Move files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • copy

      public static void copy(String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException
      Copy data
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • copy

      public static void copy(com.netlang.session.NetlangSession session, String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException
      Copy data
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • copy

      public static void copy(com.netlang.session.NetlangSession session, String from, String frompath, String to, String topath, String pattern, boolean copySubDir, com.net4z.CompletionHandler completion, FileOptions options) throws com.net4z.APIException
      Copy data
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • copy

      public static void copy(com.netlang.session.NetlangSession session, String fromResourceId, String toResourceId, FileOperation[] operations, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Copy data
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • move

      public static void move(com.netlang.session.NetlangSession session, String fromResourceId, String toResourceId, FileOperation[] operations, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Copy data
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • copyFile

      public static void copyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) throws com.net4z.APIException
      Move file
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • uploadFile

      public static void uploadFile(com.netlang.session.NetlangSession session, String localFile, String toResourceId, String topath, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • copyFile

      public static void copyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) throws com.net4z.APIException
      Move files
      Parameters:
      data -
      Throws:
      com.net4z.APIException
    • listTree

      public static List<NLFile> listTree(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs) throws com.net4z.APIException
      List file tree
      Parameters:
      session -
      resourceId -
      path -
      pattern -
      subdirs -
      Returns:
      Throws:
      com.net4z.APIException
    • listFiles

      public static List<NLFile> listFiles(String resourceId, String path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException
      List files
      Parameters:
      resourceId -
      path -
      pattern -
      subdirs -
      options -
      Returns:
      Throws:
      com.net4z.APIException
    • listFiles

      public static List<NLFile> listFiles(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException
      List files
      Parameters:
      session -
      resourceId -
      path -
      pattern -
      subdirs -
      options -
      Returns:
      Throws:
      com.net4z.APIException
    • listFolders

      public static List<String> listFolders(String resourceId, String path, String pattern, boolean subdirs) throws com.net4z.APIException
      Throws:
      com.net4z.APIException
    • listFolders

      public static List<String> listFolders(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs) throws com.net4z.APIException
      List folders
      Parameters:
      session -
      resourceId -
      path -
      pattern -
      subdirs -
      Returns:
      Throws:
      com.net4z.APIException
    • existFile

      public static boolean existFile(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException
      Check if file exists
      Parameters:
      session -
      resourceId -
      path -
      Returns:
      Throws:
      com.net4z.APIException