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