Fixing file paths on Windows

[?]
Dec 5, 2020, 8:44 AM
JP3BYVXXWFBVQ23MEHJ3LE36AN26P6OCZALKUXMNLHS2TSTM3NKAC

Dependencies

  • [2] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in libpijul/src/working_copy/filesystem.rs at line 135
    [2.213910]
    [2.213910]
    }
    fn path(&self, file: &str) -> PathBuf {
    let mut path = self.root.clone();
    path.extend(crate::path::components(file));
    path
  • replacement in libpijul/src/working_copy/filesystem.rs at line 146
    [2.214029][2.214029:214089]()
    Ok(std::fs::create_dir_all(&self.root.join(file))?)
    [2.214029]
    [2.214089]
    Ok(std::fs::create_dir_all(&self.path(file))?)
  • replacement in libpijul/src/working_copy/filesystem.rs at line 149
    [2.214177][2.214177:214239]()
    let attr = std::fs::metadata(&self.root.join(file))?;
    [2.214177]
    [2.214239]
    let attr = std::fs::metadata(&self.path(file))?;
  • replacement in libpijul/src/working_copy/filesystem.rs at line 156
    [2.214542][2.214542:214607]()
    let mut f = std::fs::File::open(&self.root.join(file))?;
    [2.214542]
    [2.214607]
    let mut f = std::fs::File::open(&self.path(file))?;
  • replacement in libpijul/src/working_copy/filesystem.rs at line 161
    [2.214750][2.214750:214812]()
    let attr = std::fs::metadata(&self.root.join(file))?;
    [2.214750]
    [2.214812]
    let attr = std::fs::metadata(&self.path(file))?;
  • replacement in libpijul/src/working_copy/filesystem.rs at line 166
    [2.214921][2.214921:214962]()
    let path = self.root.join(path);
    [2.214921]
    [2.214962]
    let path = self.path(path);
  • replacement in libpijul/src/working_copy/filesystem.rs at line 179
    [2.215378][2.215378:215462]()
    let former = self.root.join(former);
    let new = self.root.join(new);
    [2.215378]
    [2.215462]
    let former = self.path(former);
    let new = self.path(new);
  • replacement in libpijul/src/working_copy/filesystem.rs at line 192
    [2.215879][2.215879:215920]()
    let name = self.root.join(name);
    [2.215879]
    [2.215920]
    let name = self.path(name);
  • replacement in libpijul/src/working_copy/filesystem.rs at line 213
    [2.216630][2.216630:216671]()
    let path = self.root.join(file);
    [2.216630]
    [2.216671]
    let path = self.path(file);