Skip to content

esgarov/Daten-Import-in-Ocis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Daten-Import-in-Ocis

This tool provides functionality to manage OCIS storage, allowing for the creation of files and directories, and the retrieval of space information.

Features:

Compute and handle various checksums like SHA1, MD5, and Adler32 for file uploads. Recursively create directories and upload files to the OCIS storage. List all available spaces within the OCIS storage. Handle file name conflicts by appending a counter to the new file's name. Update the tree size of parent directories after a file upload. Allows specification of a space and directory within that space for file or directory creation. Symlink creation for easy access and management.

Requirements:

Python 3.x msgpack library (you can install it using pip: pip install msgpack)

Usage:

python ocis-import.py [OPTIONS] [ITEMS]

Options:

items: Paths of the files or directories to be uploaded. Use -s arg format to specify directory name. -l / --list: List all available spaces. -s / --space: Specify the name of the space where the files will be uploaded, followed by a colon and the directory name if creating a directory (e.g., personal/test:foldername). --topdir: Directory of OCIS storage (defaults to ~/.ocis or OCIS_TOPDIR environment variable if set). Examples:

List all available spaces:

python3 ocis-import.py -l

Upload a file to a space:

python3 ocis-import.py -s personal/test myfile.txt

Upload a file to the folder in space:

python3 ocis-import.py -s personal/test:folder myfile.txt

Create a directory in a space:

python3 ocis-import.py -s personal/test:myfolder

Contribute:

Feedback, bug reports, and pull requests are welcome.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published