Fork me on GitHub
Release:
Date:
0.3.2
Aug 10, 2011
Flattr Flacsync

Table Of Contents

Download

Get latest source archive,
flacsync-0.3.2.tar.gz, or install with:

pip install flacsync --upgrade --user

Found a Bug?

Fill out a report on the issue tracker.

This Page

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.