[pbs-devel] [PATCH vma-to-pbs 2/4] add support for bulk import of a dump directory
Filip Schauer
f.schauer at proxmox.com
Mon Oct 14 12:05:08 CEST 2024
On 14/10/2024 09:27, Fabian Grünbichler wrote:
>>>> + let mut notes_path_os_string: OsString = path.into();
>>>> + notes_path_os_string.push(".notes");
>>>> + let notes_path: PathBuf = notes_path_os_string.into();
>>> these three lines could become
>>>
>>> let notes_path = path.join(".notes");
>> This does not do the same thing. `.join(".notes")` would add "/.notes"
>> to the path.
> right. filename/with_filename would do the trick then? 🙂
yes, with_file_name does indeed do the trick:
let notes_path = path.with_file_name(format!("{}.notes", file_name));
More information about the pbs-devel
mailing list