feat: add pCloud driver support#9339
Merged
skysliences merged 1 commit intoAlistGo:mainfrom Sep 30, 2025
Merged
Conversation
- Implement OAuth2 authentication with US/EU region support - Add file operations (list, upload, download, delete, rename, move, copy) - Add folder operations (create, rename, move, delete) - Enhance error handling with pCloud-specific retry logic - Use correct API methods: GET for reads, POST for writes - Implement direct upload approach for better performance - Add exponential backoff for failed requests with 4xxx/5xxx classification
21 tasks
okatu-loli
approved these changes
Sep 29, 2025
skysliences
approved these changes
Sep 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backend PR for alist
PR Title
PR Description
Description
Add pCloud driver support to alist with OAuth2 authentication and comprehensive file management capabilities.
Features
API Endpoints Implemented
/listfolder- List folder contents with recursive support/getfilelink- Generate secure download URLs with expiration/uploadfile- Upload files with Content-Length requirement/createfolder- Create new folders/deletefile- Delete individual files/deletefolderrecursive- Delete folders and contents/renamefile- Rename and move files/renamefolder- Rename and move folders/copyfile- Server-side file copying/userinfo- Retrieve storage quota and usage information/oauth2_token- OAuth token refreshTechnical Implementation
Testing Completed
go build -o alist .successful compilationsuccess load storage: [/ppp], driver: [pCloud], order: [0]Configuration Options
access_token(required): OAuth2 refresh token from pCloudhostname(select): API region - us or euroot_folder_id(optional): Custom root folder ID (default: empty for root)client_id(optional): Custom OAuth client ID for enterprise usersclient_secret(optional): Custom OAuth client secret for enterprise usersRelated Issues
Resolves requests for pCloud integration support.
Related PRs
Please review this PR together with the corresponding frontend PR: AlistGo/alist-web#292
The frontend PR adds the necessary UI components for configuring the pCloud driver.
Type of Change
Checklist