Package com.netlang.io
Class Files
java.lang.Object
com.netlang.io.Files
This class implements the most common file system operations, e.g. copy, move, list etc.
Example - List all pdf-files in C:\temp
Example - Remove all tmp-files in a File Resource
Example - Copy txt-files from the local file system to a resource.
Example - List all pdf-files in C:\temp
List<String> fileList = Files.list(new File("C:\\Temp"),"*.pdf",false,null);
for(String file : fileList) {
Log.info(file, null);
}
Example - Remove all tmp-files in a File Resource
Files.remove("resource id or name","/folder/", *.tmp, false,null);
Example - Copy txt-files from the local file system to a resource.
Files.copy(NetlangSessionSingleton.getSession(),new File("c:\\temp\\"),new NetlangFile("myesource","/somefolder/"),"*.txt",false,null);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static voidcopy(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) static voidcopy(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static 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 fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean subdirs, com.net4z.CompletionHandler completion, FileOptions options, int operation) static voidcopy(com.netlang.session.NetlangSession session, String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) static voidcopy(File from, File to, String pattern, boolean copySubDir, FileOptions options) static voidcopy(String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) Copy filesstatic voidcopyFile(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidcopyFile(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidcopyFile(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidstatic voidcopyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) Copy filestatic voidcopyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String tofilename, com.net4z.CompletionHandler completion) static voidstatic voidcopyFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidcopyFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidcopyFileSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidcopyFileSilent(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) static voidcopyFileSilent(File from, File to) static voidcopyFolder(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidcopyFolder(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidcopyFolder(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidcopyFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) Copy folderstatic voidcopyFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) static voidcopyFolder(File from, File to) static voidcopyFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidcopyFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidcopyFolderSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidcopyFolderSilent(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) static voidcopyFolderSilent(File from, File to) static voidcopySilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static voidcopySilent(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) static voidcopySilent(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static voidcopySilent(com.netlang.session.NetlangSession session, String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) static voidcopySilent(File from, File to, String pattern, boolean copySubDir, FileOptions options) static voidcopySilent(String from, String frompath, String to, String topath, String pattern, boolean copySubDir, FileOptions options) static booleanexistFile(com.netlang.session.NetlangSession session, NetlangFile path) Check if file existsstatic booleanstatic booleanstatic FileReferencegetFile(com.netlang.session.NetlangSession session, NetlangFile path) Get filestatic FileReferencestatic FileReferencegetFile(com.netlang.session.NetlangSession session, String resourceId, String path, boolean fetchRemoteContent) static FileReferencestatic FileReferencestatic Stringstatic longlastModified(com.netlang.session.NetlangSession session, NetlangFile path) Get when file is last modifiedstatic longlastModified(com.netlang.session.NetlangSession session, String resourceId, String path) static longlastModified(File path) list(com.netlang.session.NetlangSession session, NetlangFile path, String pattern, boolean subdirs, FileOptions options) list(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs, FileOptions options) list(File path, String pattern, boolean subdirs, FileOptions options) list(String resourceId, String path, String pattern, boolean subdirs, FileOptions options) List fileslistFiles(com.netlang.session.NetlangSession session, NetlangFile path, String pattern, boolean subdirs, FileOptions options) listFiles(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs, FileOptions options) listFiles(File path, String pattern, boolean subdirs, FileOptions options) listFiles(String resourceId, String path, String pattern, boolean subdirs, FileOptions options) List fileslistFolders(com.netlang.session.NetlangSession session, NetlangFile path, String pattern, boolean subdirs) listFolders(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs) listFolders(File path, String pattern, boolean subdirs) listFolders(String resourceId, String path, String pattern, boolean subdirs) List folderslistTree(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs) List file treelistTreeByAgent(com.netlang.session.NetlangSession session, String agentid, String path, String pattern, boolean subdirs) List file treestatic voidmkdir(com.netlang.session.NetlangSession session, NetlangFile folder) static voidstatic voidstatic voidstatic voidmkdirSilent(com.netlang.session.NetlangSession session, NetlangFile folder) static voidmkdirSilent(com.netlang.session.NetlangSession session, String resourceId, String path) static voidmkdirSilent(File folder) static voidmkdirSilent(String resourceId, String path) static voidmove(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static voidmove(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) static voidmove(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static 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 subdirs, com.net4z.CompletionHandler completion, FileOptions options) static voidmove(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) static voidmove(File from, File to, String pattern, boolean copySubDir, FileOptions options) static voidmove(String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) Move filesstatic voidmoveFile(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidmoveFile(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidmoveFile(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidmoveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) static voidmoveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String tofilename, com.net4z.CompletionHandler completion) static voidstatic voidMove filestatic voidmoveFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidmoveFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidmoveFileSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidmoveFileSilent(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) static voidmoveFileSilent(File from, File to) static voidmoveFolder(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidmoveFolder(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidmoveFolder(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidmoveFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) Move folderstatic voidmoveFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) static voidmoveFolder(File from, File to) static voidmoveFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) static voidmoveFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) static voidmoveFolderSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) static voidmoveFolderSilent(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) static voidmoveFolderSilent(File from, File to) static voidmoveSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static voidmoveSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) static voidmoveSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) static voidmoveSilent(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean copySubDir, FileOptions options) static voidmoveSilent(File from, File to, String pattern, boolean copySubDir, FileOptions options) static voidremove(com.netlang.session.NetlangSession session, NetlangFile file, String pattern, boolean removeFromSubDir, FileOptions options) static voidremove(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) static voidremove(File file, String pattern, boolean removeFromSubDir, FileOptions options) static voidremove(String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) Remove filesstatic voidremoveFile(com.netlang.session.NetlangSession session, NetlangFile file) static voidremoveFile(com.netlang.session.NetlangSession session, String resourceId, String path) static voidremoveFile(com.netlang.session.NetlangSession session, String resourceId, String path, com.net4z.CompletionHandler completion) Remove filestatic voidremoveFile(File file) static voidremoveFile(String path) static voidremoveFileSilent(com.netlang.session.NetlangSession session, NetlangFile file) static voidremoveFileSilent(com.netlang.session.NetlangSession session, String resourceId, String path) static voidremoveFileSilent(File file) static voidremoveFileSilent(String path) static voidremoveFolder(com.netlang.session.NetlangSession session, NetlangFile folder) Remove folderstatic voidremoveFolder(com.netlang.session.NetlangSession session, String resourceId, String path) static voidremoveFolder(com.netlang.session.NetlangSession session, String resourceId, String path, com.net4z.CompletionHandler completion) static voidremoveFolder(File folder) static voidremoveFolder(String path) static voidremoveFolderSilent(com.netlang.session.NetlangSession session, NetlangFile folder) static voidremoveFolderSilent(com.netlang.session.NetlangSession session, String resourceId, String path) static voidremoveFolderSilent(File folder) static voidremoveFolderSilent(String path) static voidremoveSilent(com.netlang.session.NetlangSession session, NetlangFile file, String pattern, boolean removeFromSubDir, FileOptions options) static voidremoveSilent(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) static voidremoveSilent(File file, String pattern, boolean removeFromSubDir, FileOptions options) static voidrename(com.netlang.session.NetlangSession session, String resourceId, String frompath, String topath) Rename filestatic longsize(com.netlang.session.NetlangSession session, NetlangFile path) Get file sizestatic longstatic longstatic voiduploadFile(com.netlang.session.NetlangSession session, String toResourceId, String topath, String toFilename, String localFile, boolean temporaryFile, com.net4z.CompletionHandler completion)
-
Field Details
-
GENERIC_OPER
public static int GENERIC_OPER -
FILE_OPER
public static int FILE_OPER -
FOLDER_OPER
public static int FOLDER_OPER
-
-
Constructor Details
-
Files
public Files()Initializes a newly createdLog
-
-
Method Details
-
getSystemTempFolder
-
removeFolder
public static void removeFolder(com.netlang.session.NetlangSession session, NetlangFile folder) throws com.net4z.APIException Remove folder- Parameters:
data-- Throws:
com.net4z.APIException
-
removeFolder
- Throws:
com.net4z.APIException
-
removeFolder
- Throws:
com.net4z.APIException
-
removeFolder
public static void removeFolder(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
removeFolderSilent
public static void removeFolderSilent(com.netlang.session.NetlangSession session, NetlangFile folder) -
removeFolderSilent
-
removeFolderSilent
-
removeFolderSilent
-
removeFolder
public static void removeFolder(com.netlang.session.NetlangSession session, String resourceId, String path, com.net4z.CompletionHandler completion) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
removeFile
public static void removeFile(com.netlang.session.NetlangSession session, String resourceId, String path, com.net4z.CompletionHandler completion) throws com.net4z.APIException Remove file- Parameters:
data-- Throws:
com.net4z.APIException
-
removeFile
public static void removeFile(com.netlang.session.NetlangSession session, NetlangFile file) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
removeFile
public static void removeFile(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
removeFile
- Throws:
com.net4z.APIException
-
removeFile
- Throws:
com.net4z.APIException
-
removeFileSilent
-
removeFileSilent
-
removeFileSilent
-
removeFileSilent
-
remove
public static void remove(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, NetlangFile file, String pattern, boolean removeFromSubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
remove
public static void remove(File file, 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 - Throws:
com.net4z.APIException
-
removeSilent
public static void removeSilent(com.netlang.session.NetlangSession session, NetlangFile file, String pattern, boolean removeFromSubDir, FileOptions options) -
removeSilent
public static void removeSilent(File file, String pattern, boolean removeFromSubDir, FileOptions options) -
removeSilent
public static void removeSilent(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean removeFromSubDir, FileOptions options) -
move
public static void move(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, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
move
public static void move(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
move
public static void move(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
move
public static void move(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
move
public static void move(File from, File to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveSilent
-
moveSilent
public static void moveSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) -
moveSilent
public static void moveSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) -
moveSilent
public static void moveSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) -
moveSilent
public static void moveSilent(File from, File to, String pattern, boolean copySubDir, FileOptions options) -
move
public static void move(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean subdirs, com.net4z.CompletionHandler completion, FileOptions options) throws com.net4z.APIException - 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 - Throws:
com.net4z.APIException
-
moveFile
public static void moveFile(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFile
public static void moveFile(com.netlang.session.NetlangSession session, File from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFile
public static void moveFile(com.netlang.session.NetlangSession session, NetlangFile from, File to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFile
- Throws:
com.net4z.APIException
-
moveFileSilent
-
moveFileSilent
public static void moveFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) -
moveFileSilent
public static void moveFileSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) -
moveFileSilent
public static void moveFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) -
moveFileSilent
-
moveFile
public static void moveFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String tofilename, 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) throws com.net4z.APIException Copy file- Parameters:
data-- Throws:
com.net4z.APIException
-
copyFile
public static void copyFile(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFile
public static void copyFile(com.netlang.session.NetlangSession session, File from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFile
public static void copyFile(com.netlang.session.NetlangSession session, NetlangFile from, File to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFile
public static void copyFile(com.netlang.session.NetlangSession session, File from, File to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFile
- Throws:
com.net4z.APIException
-
copyFileSilent
-
copyFileSilent
public static void copyFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) -
copyFileSilent
public static void copyFileSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) -
copyFileSilent
public static void copyFileSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) -
copyFileSilent
-
copyFile
public static void copyFile(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String tofilename, com.net4z.CompletionHandler completion) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFolder
public static void copyFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) throws com.net4z.APIException Copy folder- Parameters:
data-- Throws:
com.net4z.APIException
-
copyFolder
public static void copyFolder(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFolder
public static void copyFolder(com.netlang.session.NetlangSession session, NetlangFile from, File to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFolder
public static void copyFolder(com.netlang.session.NetlangSession session, File from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copyFolder
- Throws:
com.net4z.APIException
-
copyFolderSilent
-
copyFolderSilent
public static void copyFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) -
copyFolderSilent
public static void copyFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) -
copyFolderSilent
public static void copyFolderSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) -
copyFolderSilent
-
copyFolder
public static void copyFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFolder
public static void moveFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath) throws com.net4z.APIException Move folder- Parameters:
data-- Throws:
com.net4z.APIException
-
moveFolder
public static void moveFolder(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFolder
public static void moveFolder(com.netlang.session.NetlangSession session, NetlangFile from, File to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFolder
public static void moveFolder(com.netlang.session.NetlangSession session, File from, NetlangFile to) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
moveFolder
- Throws:
com.net4z.APIException
-
moveFolderSilent
-
moveFolderSilent
public static void moveFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to) -
moveFolderSilent
public static void moveFolderSilent(com.netlang.session.NetlangSession session, NetlangFile from, File to) -
moveFolderSilent
public static void moveFolderSilent(com.netlang.session.NetlangSession session, File from, NetlangFile to) -
moveFolderSilent
-
moveFolder
public static void moveFolder(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, com.net4z.CompletionHandler completion) throws com.net4z.APIException - 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 files- 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 - Throws:
com.net4z.APIException
-
copy
public static void copy(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copy
public static void copy(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copy
public static void copy(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copy
public static void copy(File from, File to, String pattern, boolean copySubDir, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
copySilent
-
copySilent
-
copySilent
public static void copySilent(com.netlang.session.NetlangSession session, NetlangFile from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) -
copySilent
public static void copySilent(com.netlang.session.NetlangSession session, File from, NetlangFile to, String pattern, boolean copySubDir, FileOptions options) -
copySilent
public static void copySilent(com.netlang.session.NetlangSession session, NetlangFile from, File to, String pattern, boolean copySubDir, FileOptions options) -
copySilent
public static void copySilent(File from, File to, String pattern, boolean copySubDir, FileOptions options) -
copy
public static void copy(com.netlang.session.NetlangSession session, String fromResourceId, String frompath, String toResourceId, String topath, String pattern, boolean subdirs, com.net4z.CompletionHandler completion, FileOptions options, int operation) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
list
public static List<String> list(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
-
list
public static List<String> list(com.netlang.session.NetlangSession session, NetlangFile path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
list
public static List<String> list(File path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
list
public static List<String> list(com.netlang.session.NetlangSession session, String resourceId, String path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException - 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, NetlangFile path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
listFiles
public static List<NLFile> listFiles(File path, String pattern, boolean subdirs, FileOptions options) throws com.net4z.APIException - 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 - Throws:
com.net4z.APIException
-
listFolders
public static List<String> listFolders(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
-
listFolders
public static List<String> listFolders(com.netlang.session.NetlangSession session, NetlangFile path, String pattern, boolean subdirs) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
listFolders
public static List<String> listFolders(File 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 - Throws:
com.net4z.APIException
-
existFile
public static boolean existFile(com.netlang.session.NetlangSession session, NetlangFile path) throws com.net4z.APIException Check if file exists- Parameters:
session-resourceId-path-- Returns:
- Throws:
com.net4z.APIException
-
existFile
- Throws:
com.net4z.APIException
-
existFile
public static boolean existFile(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
lastModified
public static long lastModified(com.netlang.session.NetlangSession session, NetlangFile path) throws com.net4z.APIException Get when file is last modified- Parameters:
session-resourceId-path-- Returns:
- Throws:
com.net4z.APIException
-
lastModified
- Throws:
com.net4z.APIException
-
lastModified
public static long lastModified(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
size
public static long size(com.netlang.session.NetlangSession session, NetlangFile path) throws com.net4z.APIException Get file size- Parameters:
session-resourceId-path-- Returns:
- Throws:
com.net4z.APIException
-
size
- Throws:
com.net4z.APIException
-
size
public static long size(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
mkdir
public static void mkdir(com.netlang.session.NetlangSession session, NetlangFile folder) throws com.net4z.APIException - Parameters:
resourceId-path-localDestinationPath-completion-- Throws:
com.net4z.APIException
-
mkdir
- 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 - Throws:
com.net4z.APIException
-
mkdirSilent
-
mkdirSilent
-
mkdirSilent
-
mkdirSilent
-
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
-
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
-
listTreeByAgent
public static List<NLFile> listTreeByAgent(com.netlang.session.NetlangSession session, String agentid, String path, String pattern, boolean subdirs) throws com.net4z.APIException List file tree- Parameters:
session-resourceId-path-pattern-subdirs-- Returns:
- Throws:
com.net4z.APIException
-
getFile
public static FileReference getFile(com.netlang.session.NetlangSession session, NetlangFile path) throws com.net4z.APIException Get file- Parameters:
resourceId-path-localDestinationPath-completion-- Throws:
com.net4z.APIException
-
getFile
- Throws:
com.net4z.APIException
-
getFile
- Throws:
com.net4z.APIException
-
getFile
public static FileReference getFile(com.netlang.session.NetlangSession session, String resourceId, String path) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
getFile
public static FileReference getFile(com.netlang.session.NetlangSession session, String resourceId, String path, boolean fetchRemoteContent) throws com.net4z.APIException - Throws:
com.net4z.APIException
-
rename
public static void rename(com.netlang.session.NetlangSession session, String resourceId, String frompath, String topath) throws com.net4z.APIException Rename file- 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
-
uploadFile
public static void uploadFile(com.netlang.session.NetlangSession session, String toResourceId, String topath, String toFilename, String localFile, boolean temporaryFile, com.net4z.CompletionHandler completion) throws com.net4z.APIException - Throws:
com.net4z.APIException
-