def copy_stored_file(src_path, dst_path, src_storage=private_storage, dst_storage=private_storage):
 if ((src_path == dst_path) and (src_storage.__class__ == dst_storage.__class__)):
  return
 with src_storage.open(src_path, 'rb') as src:
  with dst_storage.open(dst_path, 'wb') as dest:
   shutil.copyfileobj(src, dest)

def copy_stored_file ( src_path , dst_path , src_storage = private_storage , dst_storage = private_storage ) : if ( ( src_path == dst_path ) and ( src_storage . __class__ == dst_storage . __class__ ) ) : return with src_storage . open ( src_path , 'rb' ) as src : with dst_storage . open ( dst_path , 'wb' ) as dest : shutil . copyfileobj ( src , dest )
copy one storage path to another storage path .