Genie.Util.expand_nullable
— Functionexpand_nullable{T}(value::Union{Nothing,T}, default::T) :: T
Returns value
if it is not nothing
- otherwise default
.
Genie.Util.file_name_without_extension
— Functionfile_name_without_extension(file_name, extension = ".jl") :: String
Removes the file extension extension
from file_name
.
Genie.Util.walk_dir
— Functionfunction walk_dir(dir, paths = String[]; only_extensions = ["jl"], only_files = true, only_dirs = false) :: Vector{String}
Recursively walks dir and produce
s non directories. If only_files
, directories will be skipped. If only_dirs
, files will be skipped.
Genie.Util.time_to_unixtimestamp
— Functiontime_to_unixtimestamp(t::Float64 = time()) :: Int
Converts a time value to the corresponding unix timestamp.