def storage_directory(datadir, partition, name_hash):
 return os.path.join(datadir, str(partition), name_hash[(-3):], name_hash)

def storage_directory ( datadir , partition , name_hash ) : return os . path . join ( datadir , str ( partition ) , name_hash [ ( - 3 ) : ] , name_hash )
get the storage directory .