alist
alist copied to clipboard
perf(123pan):Add Copy
Walkthrough
This pull request introduces a new Copy function to the Pan123 driver, enabling the copying of files from a source object to a destination directory. The implementation involves constructing a JSON payload with file details and sending a POST request to the API endpoint.
Changes
| File | Summary |
|---|---|
drivers/123/driver.go |
Added a Copy method to the Pan123 struct, replacing the previous NotSupport error with functionality to copy files using an API request. |
drivers/123/util.go |
Introduced a new API endpoint constant Copy for the copy operation. |