def copy_one_image_Christmas_2012(pathin, root=None): myphoto = photo_db.photo(pathin, get_EXIF_data=True, \ get_os_data=True, calc_md5=False, \ get_PIL_size=False, basepath=None, dictin=None) destfolder = build_path_month_no_day(myphoto, root=root) src_folder, name = os.path.split(myphoto.pathin) destpath = os.path.join(destfolder, name) shutil.move(myphoto.pathin, destpath) return myphoto, destpath
def copy_one_image(pathin, root=None): myphoto = photo_db.photo(pathin, get_EXIF_data=True, \ get_os_data=True, calc_md5=False, \ get_PIL_size=False, basepath=None, dictin=None) destfolder = build_path(myphoto, root=root) src_folder, name = os.path.split(myphoto.pathin) new_name = renumber_filename(name) destpath = os.path.join(destfolder, new_name) shutil.move(myphoto.pathin, destpath) return myphoto, destpath
def get_EXIF_date(pathin): myphoto = photo_db.photo(pathin, get_EXIF_data=True, \ get_os_data=True, calc_md5=False, \ get_PIL_size=False, basepath=None, dictin=None) return myphoto.exif_date