def get_path(path):

    if path.startswith('.') or os.path.isabs(path) or not default_storage.isdir(os.path.join(get_directory(), path)):
        return None
    return path
Get Path.
dataset/ETHPy150Open stephenmcd/filebrowser-safe/filebrowser_safe/functions.py/get_path