fileDecrypt

Decrypt selected `.encrypted` files or every `.encrypted` file in the current folder.

Function

fileDecrypt(source=None)

Parameters

source

Type: path, iterable of paths, or None

Optional `.encrypted` input. If omitted, all `.encrypted` files in the current working folder are selected.

Returns

A list of `Path` objects for successfully decrypted files, or `None` if none can be decrypted.

Examples

Decrypt all encrypted files

fileDecrypt()

Decrypt selected files

fileDecrypt(source=["report.pdf.encrypted"])

Notes

A wrong password is reported per file. Successfully decrypted files replace their `.encrypted` files.

Dynamic input behavior

When source is omitted, Toolvix discovers matching files in the current working folder. When source is supplied, only the supplied files are processed. This makes nested pipelines deterministic.

Back to function index · Nesting and chaining