We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
download_and_unpack_nested_gzip_archive
1 parent 625e5e5 commit 094ea00Copy full SHA for 094ea00
1 file changed
src/utils.rs
@@ -124,7 +124,7 @@ pub(crate) fn download_and_unpack_nested_gzip_archive(
124
.collect::<PathBuf>();
125
126
// The path will be empty here if there were files shallower than the strip_components depth.
127
- if stripped_path.components().count() > 0 {
+ if !stripped_path.as_os_str().is_empty() {
128
entry
129
.unpack(destination.join(stripped_path))
130
.map_err(DownloadUnpackArchiveError::Unpack)?;
0 commit comments