Package com.netlang.io
Class FilesOld
java.lang.Object
com.netlang.io.FilesOld
The
Log class-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(com.netlang.session.NetlangSession session, String fromResourceId, String toResourceId, FileOperation[] operations, com.net4z.CompletionHandler completion) Copy datastatic voidcopy(com.netlang.session.NetlangSession session, String from, String frompath, String to, String topath, String pattern, boolean copySubDir, com.net4z.CompletionHandler completion, FileOptions options) Copy datastatic voidcopy(com.netlang.session.NetlangSession session, String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) Copy datastatic voidcopy(String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) Copy datastatic voidcopyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) Move filestatic voidcopyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) Move filesstatic booleanCheck if file existsstatic StringgetFile(com.netlang.session.NetlangSession session, String resourceId, String path, String localDestinationPath, com.net4z.CompletionHandler completion) Get filestatic StringgetFiles(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, String localDestinationPath, com.net4z.CompletionHandler completion) Get filelistFiles(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs, FileOptions options) List fileslistFiles(String resourceId, String path, String pattern, boolean subdirs, FileOptions options) List fileslistFolders(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs) List folderslistFolders(String resourceId, String path, String pattern, boolean subdirs) listTree(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs) List file treestatic voidstatic voidstatic voidmove(com.netlang.session.NetlangSession session, String fromResourceId, String toResourceId, FileOperation[] operations, com.net4z.CompletionHandler completion) Copy datastatic voidmove(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, com.net4z.CompletionHandler completion, FileOptions options) Move filesstatic voidmove(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) Move filesstatic voidmove(String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) static voidmoveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) Move filestatic voidmoveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) Move filesstatic voidMove filestatic voidRemove filesstatic voidremove(com.netlang.session.NetlangSession session, String resourceId, String[] paths, com.net4z.CompletionHandler completion) Remove filesstatic voidremove(com.netlang.session.NetlangSession session, String resourceId, String path, com.net4z.CompletionHandler completion) Remove filesstatic voidremove(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, com.net4z.CompletionHandler completion, FileOptions options) Remove filesstatic voidremove(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) Remove filesstatic voidremove(String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) static voidrename(com.netlang.session.NetlangSession session, String resourceId, String frompath, String topath) Move filestatic voiduploadFile(com.netlang.session.NetlangSession session, String localFile, String toResourceId, String topath, com.net4z.CompletionHandler completion)
-
Constructor Details
-
FilesOld
public FilesOld()Initializes a newly createdLog
-
-
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
- 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
-