Pixeldrain
这是 Pixeldrain 高级文件系统功能的后端。它与 Pixeldrain 的免费文件共享产品不同。该文件系统需要专业版订阅或预付费套餐。有关订阅的更多信息。
Pixeldrain 的文件系统指南中提供了该文件系统的功能和限制概述。
使用账户进行操作
要使用个人文件系统,你需要一个 Pixeldrain 账户,并选择预付费套餐或基于 Patreon 的订阅方案之一。注册并订阅后,你的个人文件系统将可通过此链接访问:https://pixeldrain.com/d/me。
访问你的账户中的 API 密钥页面,为 rclone 生成一个新的 API 密钥。然后运行 rclone config
命令,并使用该 API 密钥创建一个新的后端。
示例:
No remotes found, make a new one?
n) New remote
d) Delete remote
c) Copy remote
s) Set configuration password
q) Quit config
n/d/c/s/q> n
Enter name for new remote.
name> pixeldrainfs
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
...
XX / Pixeldrain Filesystem
\ (pixeldrain)
...
Storage> pixeldrain
Option api_key.
API key for your pixeldrain account.
Found on https://pixeldrain.com/user/api_keys.
Enter a value. Press Enter to leave empty.
api_key> b1bb1e81-9b7b-406b-986a-c9b20be76e15
Option directory_id.
Root of the filesystem to use. Set to 'me' to use your personal filesystem.
Set to a shared directory ID to use a shared directory.
Enter a string value. Press Enter for the default (me).
directory_id>
Edit advanced config?
y) Yes
n) No (default)
y/n>
Configuration complete.
Options:
- type: pixeldrain
- api_key: b1bb1e81-9b7b-406b-986a-c9b20be76e15
Keep this "pixeldrainfs" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Current remotes:
Name Type
==== ====
pixeldrainfs pixeldrain
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q
无需账户使用
通过 rclone 可以对公开共享的目录进行只读访问。为此,你只需要一个目录 ID。目录 ID 可以在共享目录的 URL 中找到,该 URL 类似如下格式:
https://pixeldrain.com/d/abcd1234
,其中 abcd1234
就是目录 ID。
你自己文件系统中的目录 ID 也可以使用 lsf
命令列出:
rclone lsf Pixeldrain: --dirs-only -Fpi
这将打印出你 Pixeldrain
主目录中的目录及其公共 ID。
在 rclone 配置中输入此目录 ID,你就可以访问该目录了。
标准选项
以下是 Pixeldrain(Pixeldrain 文件系统)特有的标准选项。
–pixeldrain-api-key
你的 Pixeldrain 账户的 API 密钥。 可在 https://pixeldrain.com/user/api_keys 找到。
属性:
- 配置项:api_key
- 环境变量:RCLONE_PIXELDRAIN_API_KEY
- 类型:字符串
- 是否必需:否
–pixeldrain-root-folder-id
要使用的文件系统的根目录。
设置为 ‘me’ 以使用你的个人文件系统。设置为共享目录 ID 以使用共享目录。
属性:
- 配置项:root_folder_id
- 环境变量:RCLONE_PIXELDRAIN_ROOT_FOLDER_ID
- 类型:字符串
- 默认值:“me”
高级选项
以下是 Pixeldrain(Pixeldrain 文件系统)特有的高级选项。
–pixeldrain-api-url
要连接的 API 端点。在绝大多数情况下,保持默认设置即可。仅在测试时才需要更改此设置。
属性:
- 配置项:api_url
- 环境变量:RCLONE_PIXELDRAIN_API_URL
- 类型:字符串
- 默认值:“https://pixeldrain.com/api"
–pixeldrain-description
远程存储的描述。
属性:
- 配置项:description
- 环境变量:RCLONE_PIXELDRAIN_DESCRIPTION
- 类型:字符串
- 是否必需:否
元数据
Pixeldrain 支持文件模式和创建时间。
以下是 Pixeldrain 后端可能的系统元数据项。
名称 | 说明 | 类型 | 示例 | 只读 |
---|---|---|---|---|
btime | 文件创建时间 | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | 否 |
mode | 文件模式 | 八进制,Unix 风格 | 755 | 否 |
mtime | 最后修改时间 | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | 否 |
更多信息请参阅 元数据 文档。