Skip to content

Commit

Permalink
Fix symlinks handling #45
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 1, 2024
1 parent 428a35c commit 6e47db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/cmlteam/serv/HttpHandlerListing.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void showList(
} else if (file.isFile()) {
writeFileRow(os, fIdxFixed, file);
} else {
System.err.println(file.getName() + " is not supported");
System.err.println("warning: not supported (symlink?): " + file);
}
}
writeFooter(os);
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/cmlteam/serv/TarUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.Files;

class TarUtil {

Expand Down Expand Up @@ -73,7 +74,7 @@ private static void addToArchiveCompression(
}
}
} else {
System.out.println(file.getName() + " is not supported");
System.err.println("warning: not supported (symlink?): " + file);
}
}
}

0 comments on commit 6e47db9

Please sign in to comment.