def target_info_from_filename(filename):
basename = osp.basename(filename)<EOL>storedir = osp.dirname(osp.abspath(filename))<EOL>target = filename.split("<STR_LIT:.>")[-<NUM_LIT:1>]<EOL>return storedir, basename, target<EOL>
Transforms /some/path/foo.png into ('/some/path', 'foo.png', 'png').