cloudsync

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOWNLOAD_PATHS = "download_paths"
	UPLOAD_PATHS   = "upload_paths"
	MD5_FILE_MAP   = "md5_file_map"
)

Variables

This section is empty.

Functions

func CacheFileMD5Map added in v0.0.6

func CacheFileMD5Map()

func SyncFolder

func SyncFolder() error

SyncFolder synchronizes the source folder with the target folder in the BaiduDisk cloud storage.

It retrieves the cloud file list, compares it with the local files in the source folder, and performs the following operations: - Uploads the files that are not present in the cloud storage. - Downloads the files that are present in the cloud storage but missing locally.

The function takes no parameters and returns an error if any occurs during the synchronization process.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL