We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bdafc5 commit f28f926Copy full SHA for f28f926
src/impl.ml
@@ -319,16 +319,11 @@ module TarStream = struct
319
}
320
321
let make_tar_header prefix counter suffix file_size =
322
- Tar.Header.({
323
- file_name = Printf.sprintf "%s%08d%s" prefix counter suffix;
324
- file_mode = 0o644;
325
- user_id = 0;
326
- group_id = 0;
327
- file_size = Int64.of_int file_size;
328
- mod_time = Int64.of_float (Unix.gettimeofday ());
329
- link_indicator = Tar.Header.Link.Normal;
330
- link_name = ""
331
- })
+ Tar.Header.make
+ ~mod_time:(Int64.of_float (Unix.gettimeofday ()))
+ ~file_mode:0o0644
+ (Printf.sprintf "%s%08d%s" prefix counter suffix)
+ (Int64.of_int file_size)
332
end
333
334
let stream_tar common c s _ prefix ?(progress = no_progress_bar) () =
0 commit comments