mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 03:49:44 -04:00
Add preferred path separator to metadata
This commit is contained in:
parent
a4eebc68da
commit
bcb7f004d1
@ -797,6 +797,8 @@ void scanner_<LoggerPolicy>::scan(
|
||||
if (!options_.no_create_timestamp) {
|
||||
mv2.create_timestamp() = std::time(nullptr);
|
||||
}
|
||||
mv2.preferred_path_separator() =
|
||||
static_cast<uint32_t>(std::filesystem::path::preferred_separator);
|
||||
|
||||
auto [schema, data] = metadata_v2::freeze(mv2);
|
||||
|
||||
|
@ -344,4 +344,7 @@ struct metadata {
|
||||
24: optional string_table compact_names,
|
||||
|
||||
25: optional string_table compact_symlinks,
|
||||
|
||||
// preferred path separator of original file system
|
||||
26: optional UInt32 preferred_path_separator,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user