mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 01:39:36 +01:00
tweak unpack channel built-in, std::filesystem::path for tarball
This commit is contained in:
parent
04ce0e648a
commit
193dc49097
3 changed files with 37 additions and 27 deletions
|
|
@ -15,7 +15,7 @@ struct TarArchive
|
|||
|
||||
void check(int err, const std::string & reason = "failed to extract archive (%s)");
|
||||
|
||||
explicit TarArchive(const Path & path);
|
||||
explicit TarArchive(const std::filesystem::path & path);
|
||||
|
||||
/// @brief Create a generic archive from source.
|
||||
/// @param source - Input byte stream.
|
||||
|
|
@ -37,9 +37,9 @@ struct TarArchive
|
|||
|
||||
int getArchiveFilterCodeByName(const std::string & method);
|
||||
|
||||
void unpackTarfile(Source & source, const Path & destDir);
|
||||
void unpackTarfile(Source & source, const std::filesystem::path & destDir);
|
||||
|
||||
void unpackTarfile(const Path & tarFile, const Path & destDir);
|
||||
void unpackTarfile(const std::filesystem::path & tarFile, const std::filesystem::path & destDir);
|
||||
|
||||
time_t unpackTarfileToSink(TarArchive & archive, ExtendedFileSystemObjectSink & parseSink);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue