feat(push): save objects

This commit is contained in:
grimhilt
2024-09-12 23:22:20 +02:00
parent 8f636b4bf7
commit a69a71d843
16 changed files with 230 additions and 68 deletions

View File

@@ -1,8 +1,7 @@
use nextsync::config::config::Config;
use std::fs::OpenOptions;
use rand::{distributions::Alphanumeric, Rng};
use std::env;
use std::fs::{self, File};
use std::fs::{self, File, OpenOptions};
use std::io::{self, Write};
use std::path::PathBuf;
use std::process::{Command, Output};
@@ -136,11 +135,12 @@ impl ClientTest {
pub fn add_ignore_rule(&self, rule: &str) {
let mut nsignore_path = self.volume.clone();
nsignore_path.push_str("/.nsignore");
let mut file = OpenOptions::new()
.write(true)
.create(true)
.append(true)
.open(nsignore_path).unwrap();
let mut file = OpenOptions::new()
.write(true)
.create(true)
.append(true)
.open(nsignore_path)
.unwrap();
let _ = writeln!(file, "{rule}").unwrap();
}