A Simple wrapper for QNAP API.
To get started using JQnap API just initialize the core class of the Project
QNAPCore core = new QNAPCore(String ip, int port);
core.login(String user, String pass);
You can handle the return value of login in order to check if you are logged in and then remove unwanted error in your program
if(core.login(String user, String pass)){
...
}
Be sure to logout when you finished all the operations
core.logout();
List<QNAPFolder> folderList = core.getFolderList(String path);
This is a little bit tricky, it return a QNAPFile and inside this class is defined a parameter isFolder that identifies if is a folder or not
List<QNAPFile> fileList = getFileList(String path);
String getFileSize(String path, String filename);