export const getDirectoryListing = async (path: string): Promise<DirectoryListingResponse> => {
    const basePath = getApiBasePath();
    const url = `${basePath}browse/localfs/?path=${encodeURIComponent(path)}`;
    const r = await fetch(url, {
        method: 'GET',