def send_from_directory(directory, filename, **options):
 filename = safe_join(directory, filename)
 if (not os.path.isfile(filename)):
  raise NotFound()
 options.setdefault('conditional', True)
 return send_file(filename, **options)

def send_from_directory ( directory , filename , ** options ) : filename = safe_join ( directory , filename ) if ( not os . path . isfile ( filename ) ) : raise NotFound ( ) options . setdefault ( 'conditional' , True ) return send_file ( filename , ** options )
send a file from a given directory with :func:send_file .