(Path path)
| 14 | |
| 15 | public class InputFile { |
| 16 | InputFile(Path path) { |
| 17 | try { |
| 18 | this.path = path; |
| 19 | this.fileName = getSanitizedFileName(path); |
| 20 | this.size = Files.size(path); |
| 21 | this.hash = HashType.SHA256.hash(path); |
| 22 | this.hashType = HashType.SHA256; |
| 23 | this.pathHint = path; |
| 24 | } catch (IOException e) { |
| 25 | throw new UncheckedIOException(e); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | public InputFile(String fileName) { |
| 30 | this(fileName, unknownSize, null, null); |
nothing calls this directly
no test coverage detected