server: add date-modified to datasets

This commit is contained in:
k
2024-09-18 17:58:33 +02:00
parent 9b4e166608
commit 41638d10bf
6 changed files with 35 additions and 24 deletions

View File

@@ -1,10 +1,12 @@
use std::path::{Path, PathBuf};
pub trait AnyMap {
fn path(&self) -> &str;
fn path_last(&self) -> &Option<String>;
fn path(&self) -> &Path;
fn path_last(&self) -> &Option<PathBuf>;
fn t_name(&self) -> &str;
fn exported_path_with_t_name(&self) -> Vec<(&str, &str)> {
fn exported_path_with_t_name(&self) -> Vec<(&Path, &str)> {
let t_name = self.t_name();
if let Some(path_last) = self.path_last() {