3.4. flacsync.util
Define shared utility functions.
-
flacsync.util.fname(file_, base=None, new_base=None, new_ext=None)[source]
Convert a file name to a new base + extensions.
Parameters: |
- file (str) – Source file name
- base (str) – Base string, found in the file_
- new_base (str) – Destination base string, to replace base
- new_ext (str) – Destination extention (.aac), to replace file_
extenstion
|
-
flacsync.util.newer(f1, f2)[source]
Returns: | True if file f1 is newer than file f2. |
Warning
Assumes File f1 exists.