All URIs are relative to https://api.aspose.cloud/v3.0
| Method | HTTP request | Description |
|---|---|---|
| copyFolder | PUT /barcode/storage/folder/copy/{srcPath} | Copy folder |
| createFolder | PUT /barcode/storage/folder/{path} | Create the folder |
| deleteFolder | DELETE /barcode/storage/folder/{path} | Delete folder |
| getFilesList | GET /barcode/storage/folder/{path} | Get all files and folders within a folder |
| moveFolder | PUT /barcode/storage/folder/move/{srcPath} | Move folder |
copyFolder(srcPath, destPath, srcStorageName, destStorageName)
Copy folder
// Import classes:
import com.aspose.barcode.cloud.ApiClient;
import com.aspose.barcode.cloud.ApiException;
import com.aspose.barcode.cloud.Configuration;
import com.aspose.barcode.cloud.auth.*;
import com.aspose.barcode.cloud.api.FolderApi;
public class Main {
public static void main(String[] args) {
ApiClient client = new ApiClient(
"Client Id from https://dashboard.aspose.cloud/applications",
"Client Secret from https://dashboard.aspose.cloud/applications"
);
FolderApi api = new FolderApi(client);
String srcPath = "srcPath_example"; // String | Source folder path e.g. '/src'
String destPath = "destPath_example"; // String | Destination folder path e.g. '/dst'
try {
api.copyFolder(srcPath, destPath);
} catch (ApiException e) {
System.err.println("Exception when calling FolderApi.copyFolder");
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| srcPath | String | Source folder path e.g. '/src' | |
| destPath | String | Destination folder path e.g. '/dst' | |
| srcStorageName | String | Source storage name | [optional] |
| destStorageName | String | Destination storage name | [optional] |
null (empty response body)
createFolder(path, storageName)
Create the folder
// Import classes:
import com.aspose.barcode.cloud.ApiClient;
import com.aspose.barcode.cloud.ApiException;
import com.aspose.barcode.cloud.Configuration;
import com.aspose.barcode.cloud.auth.*;
import com.aspose.barcode.cloud.api.FolderApi;
public class Main {
public static void main(String[] args) {
ApiClient client = new ApiClient(
"Client Id from https://dashboard.aspose.cloud/applications",
"Client Secret from https://dashboard.aspose.cloud/applications"
);
FolderApi api = new FolderApi(client);
String path = "path_example"; // String | Folder path to create e.g. 'folder_1/folder_2/'
try {
api.createFolder(path);
} catch (ApiException e) {
System.err.println("Exception when calling FolderApi.createFolder");
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| path | String | Folder path to create e.g. 'folder_1/folder_2/' | |
| storageName | String | Storage name | [optional] |
null (empty response body)
deleteFolder(path, storageName, recursive)
Delete folder
// Import classes:
import com.aspose.barcode.cloud.ApiClient;
import com.aspose.barcode.cloud.ApiException;
import com.aspose.barcode.cloud.Configuration;
import com.aspose.barcode.cloud.auth.*;
import com.aspose.barcode.cloud.api.FolderApi;
public class Main {
public static void main(String[] args) {
ApiClient client = new ApiClient(
"Client Id from https://dashboard.aspose.cloud/applications",
"Client Secret from https://dashboard.aspose.cloud/applications"
);
FolderApi api = new FolderApi(client);
String path = "path_example"; // String | Folder path e.g. '/folder'
try {
api.deleteFolder(path);
} catch (ApiException e) {
System.err.println("Exception when calling FolderApi.deleteFolder");
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| path | String | Folder path e.g. '/folder' | |
| storageName | String | Storage name | [optional] |
| recursive | Boolean | Enable to delete folders, subfolders and files | [optional] [default to false] |
null (empty response body)
FilesList getFilesList(path, storageName)
Get all files and folders within a folder
// Import classes:
import com.aspose.barcode.cloud.ApiClient;
import com.aspose.barcode.cloud.ApiException;
import com.aspose.barcode.cloud.Configuration;
import com.aspose.barcode.cloud.auth.*;
import com.aspose.barcode.cloud.api.FolderApi;
public class Main {
public static void main(String[] args) {
ApiClient client = new ApiClient(
"Client Id from https://dashboard.aspose.cloud/applications",
"Client Secret from https://dashboard.aspose.cloud/applications"
);
FolderApi api = new FolderApi(client);
String path = "path_example"; // String | Folder path e.g. '/folder'
try {
FilesList result = api.getFilesList(path);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FolderApi.getFilesList");
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| path | String | Folder path e.g. '/folder' | |
| storageName | String | Storage name | [optional] |
moveFolder(srcPath, destPath, srcStorageName, destStorageName)
Move folder
// Import classes:
import com.aspose.barcode.cloud.ApiClient;
import com.aspose.barcode.cloud.ApiException;
import com.aspose.barcode.cloud.Configuration;
import com.aspose.barcode.cloud.auth.*;
import com.aspose.barcode.cloud.api.FolderApi;
public class Main {
public static void main(String[] args) {
ApiClient client = new ApiClient(
"Client Id from https://dashboard.aspose.cloud/applications",
"Client Secret from https://dashboard.aspose.cloud/applications"
);
FolderApi api = new FolderApi(client);
String srcPath = "srcPath_example"; // String | Folder path to move e.g. '/folder'
String destPath = "destPath_example"; // String | Destination folder path to move to e.g '/dst'
try {
api.moveFolder(srcPath, destPath);
} catch (ApiException e) {
System.err.println("Exception when calling FolderApi.moveFolder");
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| srcPath | String | Folder path to move e.g. '/folder' | |
| destPath | String | Destination folder path to move to e.g '/dst' | |
| srcStorageName | String | Source storage name | [optional] |
| destStorageName | String | Destination storage name | [optional] |
null (empty response body)