Module utils

Module utils 

Source

Structs§

SplitArrayIter
A extra str::split iterator that splits at any of the given array.

Traits§

StringUtils
Some helper functions for dealing with Unicode strings.

Functions§

absolute_path
Absolutize a given path with the current working directory.
absolute_path_base
Absolutize a given path with the given base.
create_podcast_dir
Get the download directory for the provided pod_title and create it if not existing
display_with
Helper function to defer formatting to later, without having to allocate a intermediate String
filetype_supported
get_app_config_path
get_app_new_database_path
Get the termusic database path for new_database.
get_parent_folder
Get the parent path of the given path, if there is none use the tempdir
get_pin_yin
is_playlist
Check if the given path has a extension that matches well-known playlists that are supported by us.
playlist_get_vec
Parse the playlist at current_node(from the tui tree) and return the media paths
random_ascii
Generate len random ascii character (a-z0-9)
spawn_process
Spawn a detached process