[][src]Module melody::utils

Utilities for melody

Functions

add_to_library

Add to library from - Original Directory that the music being moved from, must be an absolute path to - New Directory that the music is being moved to, must be an absolute path from must be in a folder above or on the same level as to Files that failed to be sorted will remain

find_duplicates

Find Duplicates music_dir - Music directory to find duplicates Returns a list of duplicates

fmt_duration

Helper function to format Duration to a string

get_filetype

Optionally returns the file's extension as a String

ignored_file

Ignored file filter, if a file starts with .# its ignored

list_supported_files

Recursively list all the files of Path (if not ignored), if path is a file, return vec![path]

organize_song

Function meant to organize a specific song Song: Song to organize to: Directory move song to

supported_song

Checks if a song is supported If a song's file extension is flac | wav | vorbis | mp3 | ogg its supported