aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-04-10 01:47:46 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-04-10 01:47:46 +0100
commitaf7a0f5022dfd0e04c821f0d4fc8314b3578417c (patch)
tree931f0e7128eebfa99a6fb2a7d7bebad1c10fa711 /filamento/src
parent76ba919e6a39f59beabd4443010a3cd635fad885 (diff)
downloadluz-af7a0f5022dfd0e04c821f0d4fc8314b3578417c.tar.gz
luz-af7a0f5022dfd0e04c821f0d4fc8314b3578417c.tar.bz2
luz-af7a0f5022dfd0e04c821f0d4fc8314b3578417c.zip
feat(filamento): add `root()` method to `Files`
Diffstat (limited to '')
-rw-r--r--filamento/src/files.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/filamento/src/files.rs b/filamento/src/files.rs
index cd232f3..3acc871 100644
--- a/filamento/src/files.rs
+++ b/filamento/src/files.rs
@@ -35,6 +35,10 @@ impl Files {
let root = root.into();
Self { root }
}
+
+ pub fn root(&self) -> &Path {
+ &self.root
+ }
}
impl FileStore for Files {