We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b9897 commit 409f95bCopy full SHA for 409f95b
1 file changed
src/main.rs
@@ -190,6 +190,22 @@ fn backup_mods(config: Config) -> Result<(), Box<dyn std::error::Error>> {
190
Ok(())
191
}
192
193
+//ToDo this function needs more thinking before i can properly implement it.
194
+// Might need a rework of the backup system a little.
195
+#[allow(dead_code)]
196
+fn delete_old_backups(config: Config) -> Result<(), Box<dyn std::error::Error>> {
197
+ if (!config.backup_subfolders) {
198
+ return Ok(());
199
+ }
200
+ let folder = config.backup_path;
201
+ let system_time = std::time::SystemTime::now();
202
+ let datetime: DateTime<Local> = system_time.into();
203
+ for folder in &folder {
204
205
+
206
+ Ok(())
207
+}
208
209
fn copy_dir_all<P: AsRef<Path>, Q: AsRef<Path>>(
210
from: P,
211
to: Q,
0 commit comments