utils library

Utility functions for the Filen CLI.

Classes

DigestSink
Helper class to capture hash results from chunked hash computation.

Functions

formatDate(dynamic dateValue) String
Format a date value (int timestamp or string) into YYYY-MM-DD.
formatSize(dynamic b) String
Format a byte count into a human-readable string (e.g., "1.5 MB").
shouldIncludeFile(String fileName, List<String> include, List<String> exclude) bool
Check if a filename should be included based on include/exclude glob patterns.