diff --git a/interface/app/$libraryId/Explorer/Inspector/index.tsx b/interface/app/$libraryId/Explorer/Inspector/index.tsx index 1f4854a76..b380b298a 100644 --- a/interface/app/$libraryId/Explorer/Inspector/index.tsx +++ b/interface/app/$libraryId/Explorer/Inspector/index.tsx @@ -2,7 +2,7 @@ import { Image, Image_Light } from '@sd/assets/icons'; import clsx from 'clsx'; import dayjs from 'dayjs'; -import { Barcode, CircleWavyCheck, Clock, Cube, Hash, Link, Lock, Snowflake } from 'phosphor-react'; +import { Barcode, CircleWavyCheck, Clock, Cube, Hash, Link, Lock, Path, Snowflake } from 'phosphor-react'; import { HTMLAttributes, useEffect, useState } from 'react'; import { ExplorerItem, @@ -69,6 +69,8 @@ export const Inspector = ({ data, context, showThumbnail = true, ...props }: Pro const item = data?.item; + const { data: fileFullPath } = useLibraryQuery(['files.getPath', item?.id || -1]); + // map array of numbers into string const pub_id = fullObjectData?.data?.pub_id.map((n: number) => n.toString(16)).join(''); @@ -196,6 +198,17 @@ export const Inspector = ({ data, context, showThumbnail = true, ...props }: Pro )} + {fileFullPath && ( + + + + Path + + {fileFullPath} + + + + )} {!isDir && objectData && (