Collection of scripts to keep my pCloud organised.
These scripts rely on environment variables: ACCESS_TOKEN
, FOLDER_ID
.
Some scripts need Redis to run:
docker-compose up -d
Caches all checksums for files under process.env.FOLDER_PATH
in a Redis
instance running in localhost.
Inside FOLDER_ID
, given a (flat) group of folders with pictures, prints folder
names in groups such that all folder names in a group have pictures with
matching hashes.
Similar to bin/intersects-hashes.js
. Inside FOLDER_ID
, given a (flat) group
of folders with pictures, prints folder names in groups such that all folder
names in a group have pictures with checksums.
Requires checksums to have been cached in Redis.
Inside FOLDER_ID
, given a (flat) group of folders with pictures, finds
pictures with duplicate hashes, and keeps the one with the oldest creation or
modification date.