Import your existing files into cloudreve!
Project description
cloudreveimport
Import your existing files into Cloudreve!
Install
go install github.com/yindaheng98/cloudreveimport
pip install cloudreveimport
Usage
import time
from cloudreveimport import Invoker
invoker = Invoker(
execuable="path to execuatable file you just install by 'go install ...'",
config="path to your conf.ini for your cloudreve",
email="your email in cloudreve"
)
invoker.start()
invoker.import_file(
source_name="path to the file on your disk",
dst_path=["path", "you", "want", "to", "import", "to", "in", "cloudreve"],
size=100, # Bytes
)
invoker.update_file_stat(
dst_path=["path", "to", "file", "in", "cloudreve"],
ctime=int(time.time()), # created time
mtime=int(time.time()), # updated time
size=100, # Bytes
)
invoker.update_folder_time(
dst_path=["path", "to", "folder", "in", "cloudreve"],
ctime=int(time.time()), # created time
mtime=int(time.time()), # updated time
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cloudreveimport-1.0.tar.gz
(3.4 kB
view details)
File details
Details for the file cloudreveimport-1.0.tar.gz
.
File metadata
- Download URL: cloudreveimport-1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc10de2040ed234fff2b5b8cf1341db27281fb7071232e538f3b49e12e2212a |
|
MD5 | 221cdaef3fcf6cd0c3e20f2fbcc05ed8 |
|
BLAKE2b-256 | 8ac7ef63937bacab87255d41441dcf9133f3ed7b56faf6966a12c838bb193538 |