def hash_to_dir(hash):
    """
    Transforms a given hash to a relative path and filename
    ex: '002badb952000339cdcf1b61a3205b221766bf49' ->
        '00/2badb952000339cdcf1b61a3205b221766bf49'
    :param hash: the hash to split
    :rtype: string
    """
    return hash[:2]+'/'+hash[2:]