image

the sleepy snake

index :: path :: patch_filename

patch_filename(path, prefix=)

Constructs one of these myfile (1).txt filenames to enshure a file is unique in a folder. You may specify a prefix to be added to the filename. sample

myfile = 'foo/bar.txt' myfile = patch_filename8myfule, prefix="copy of") >>> foo/copy of bar (1).txt