fdutils/files.py
def modify_filename(filename_path, prepend='', append='', timestamp=False):
    """ modifies the filename part of a path

    """
    filepath, filename_whole = os.path.split(filename_path)
    filename, ext = os.path.splitext(filename_whole)
    new_filename_path = os.path.join(filepath, prepend + filename + append + ext)
    if timestamp:
        return get_filename_timestamped(new_filename_path)
    return new_filename_path
 modifies the filename part of a path

    
modifies the filename part of a path
modifies the filename part of a path
def modify_filename(filename_path, prepend='', append='', timestamp=False):
    filepath, filename_whole = os.path.split(filename_path)
    filename, ext = os.path.splitext(filename_whole)
    new_filename_path = os.path.join(filepath, prepend + filename + append + ext)
    if timestamp:
        return get_filename_timestamped(new_filename_path)
    return new_filename_path
def modify_filename ( filename_path , prepend = '' , append = '' , timestamp = False ) : filepath , filename_whole = os . path . split ( filename_path ) filename , ext = os . path . splitext ( filename_whole ) new_filename_path = os . path . join ( filepath , prepend + filename + append + ext ) if timestamp : return get_filename_timestamped ( new_filename_path ) return new_filename_path
modifies the filename part of a path
modifies the filename part of a path
""" modifies the filename part of a path

    """
filename_path
prepend
append
timestamp