Module sortery::tools::sort [−][src]
Expand description
The main sorting algorithm, and all the functions it needs to operate.
Functions
Return a DateTime
instance representing the creation, modification,
or access time of path
according to date_type
.
Return the access date and time of path
as the number of seconds since the
UNIX epoch.
Return the creation date and time of path
as the number of seconds since the
UNIX epoch.
Return the modification date and time of path
as the number of seconds since the
UNIX epoch.
Move file
into a set of directories in yyyy/mm/ format according to its
creation time.
Return a File
representing the renamed version of path
.
The main sorting algorithm; this checks files for validity and shows the progress bar.
Return true
if:
Return true
if path
’s type is one of the types in types
.
“Type” refers to the file extension, as in "jpg"
, "png"
, etc.
The main sort function used by the command-line interface. Each parameter
corresponds with the parameter in get_sorting_results
of the same name,
with the exception of dry_run
.
Print the intended sort, without acutally sorting. Each parameter
corresponds with the parameter in get_sorting_results
with the same name.
Sort according to configuration data in JSON String
json
. source
and target
correspond with the same-name parameters in get_sorting_results
.
See crate::structs::ConfigData
for more information on JSON configuration.