Skip to content

Commit

Permalink
added symbolic file check
Browse files Browse the repository at this point in the history
  • Loading branch information
eeisegn committed Oct 3, 2023
1 parent c410a36 commit 4b7cb9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Upcoming changes...

## [0.5.3] - 2023-10-03
### Added
- Added symbolic file check (to skip)

## [0.5.2] - 2023-08-14
### Added
- Added support for manual proxy configuration (`--proxy`)
Expand Down Expand Up @@ -48,3 +52,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[0.5.0]: https://github.com/scanoss/scanoss.java/compare/v0.4.0...v0.5.0
[0.5.1]: https://github.com/scanoss/scanoss.java/compare/v0.5.0...v0.5.1
[0.5.2]: https://github.com/scanoss/scanoss.java/compare/v0.5.1...v0.5.2
[0.5.3]: https://github.com/scanoss/scanoss.java/compare/v0.5.2...v0.5.3
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.scanoss</groupId>
<artifactId>scanoss</artifactId>
<version>0.5.2</version>
<version>0.5.3</version>
<packaging>jar</packaging>
<name>scanoss.java</name>
<url>https://github.com/scanoss/scanoss.java</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/scanoss/Scanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public List<String> processFileList(@NonNull String root, @NonNull List<String>
if (!filterFile(nameLower)) {
Path fullPath = Path.of(root, file);
File f = fullPath.toFile();
if (f.exists() && f.isFile() && f.length() > 0) {
if (f.exists() && f.isFile() && f.length() > 0 && ! Files.isSymbolicLink(fullPath)) {
Future<String> future = executorService.submit(() -> processor.process(file, stripDirectory(root, file)));
futures.add(future);
}
Expand Down

0 comments on commit 4b7cb9a

Please sign in to comment.