Skip to main content

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(
    "path to execuatable file you just install by 'go install ...'",
    "-c", "path to your conf.ini for your cloudreve",
    "-u", "your email in cloudreve",
    "-m", "-" # This means read commands from stdin
)
invoker.start()
invoker.import_file(
    source_name="path to the file on your disk",
    dst_path=["path", "you", "want", "to", "import", "to", "in", "cloudreve"]
)
invoker.update_file_time(
    dst_path=["path", "to", "file", "in", "cloudreve"],
    ctime=int(time.time()), # created time
    mtime=int(time.time()), # updated time
)
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudreveimport-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file cloudreveimport-0.0.2.tar.gz.

File metadata

  • Download URL: cloudreveimport-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for cloudreveimport-0.0.2.tar.gz
Algorithm Hash digest
SHA256 df9dce41584d9522b5564f21ca6a5c2dd6d3f9e356a206c6f5e0889a1e398b56
MD5 2e2f8c6b4b0c6986c3836e93bd2041da
BLAKE2b-256 0265ea060ccec5128bc9063307cbe665b4477c356631d70f97822fa06a115eda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page