aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-03-19 19:39:43 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-03-19 19:39:43 +0000
commitb9ee5574f389134ccfbdd970eb9a4a355c4e091b (patch)
tree1301205078ed02ff6f09a1b1fd8ace3c2a0bac3b /src
parentAdded documentation for errors and removed useless errors (diff)
downloadminiserve-b9ee5574f389134ccfbdd970eb9a4a355c4e091b.tar.gz
miniserve-b9ee5574f389134ccfbdd970eb9a4a355c4e091b.zip
Fixed comments
Diffstat (limited to 'src')
-rw-r--r--src/archive.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archive.rs b/src/archive.rs
index fcf39fd..206d252 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -103,10 +103,10 @@ fn tar(
inner_folder: String,
skip_symlinks: bool,
) -> Result<Vec<u8>, errors::CompressionError> {
- // Create a TAR file of src_dir
let mut tar_builder = Builder::new(Vec::new());
tar_builder.follow_symlinks(!skip_symlinks);
+ // Recursively adds the content of src_dir into the archive stream
tar_builder.append_dir_all(inner_folder, &src_dir).context(
errors::CompressionErrorKind::TarBuildingError {
message: format!(