about summary refs log tree commit diff
path: root/kittybox-rs
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs')
-rw-r--r--kittybox-rs/src/media/storage/file.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/kittybox-rs/src/media/storage/file.rs b/kittybox-rs/src/media/storage/file.rs
index cb9cadb..59723d5 100644
--- a/kittybox-rs/src/media/storage/file.rs
+++ b/kittybox-rs/src/media/storage/file.rs
@@ -141,7 +141,7 @@ impl MediaStore for FileStore {
         domain: &str,
         filename: &str,
     ) -> Result<(Metadata, Pin<Box<dyn tokio_stream::Stream<Item = std::io::Result<bytes::Bytes>> + Send>>)> {
-        let path = self.base.join(format!("{}{}", domain, filename));
+        let path = self.base.join(format!("{}/{}", domain, filename));
         debug!("Path: {}", path.display());
 
         let file = OpenOptions::new()
@@ -185,8 +185,8 @@ impl MediaStore for FileStore {
         filename: &str,
         range: (Bound<u64>, Bound<u64>)
     ) -> Result<Pin<Box<dyn tokio_stream::Stream<Item = std::io::Result<bytes::Bytes>> + Send>>> {
-        let path = self.base.join(format!("{}{}", domain, filename));
-        let metapath = self.base.join(format!("{}{}.json", domain, filename));
+        let path = self.base.join(format!("{}/{}", domain, filename));
+        let metapath = self.base.join(format!("{}/{}.json", domain, filename));
         debug!("Path: {}, metadata: {}", path.display(), metapath.display());
 
         let mut file = OpenOptions::new()