Skip to content

Commit 4b7cb9a

Browse files
committed
added symbolic file check
1 parent c410a36 commit 4b7cb9a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Upcoming changes...
1313

14+
## [0.5.3] - 2023-10-03
15+
### Added
16+
- Added symbolic file check (to skip)
17+
1418
## [0.5.2] - 2023-08-14
1519
### Added
1620
- Added support for manual proxy configuration (`--proxy`)
@@ -48,3 +52,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4852
[0.5.0]: https://github.com/scanoss/scanoss.java/compare/v0.4.0...v0.5.0
4953
[0.5.1]: https://github.com/scanoss/scanoss.java/compare/v0.5.0...v0.5.1
5054
[0.5.2]: https://github.com/scanoss/scanoss.java/compare/v0.5.1...v0.5.2
55+
[0.5.3]: https://github.com/scanoss/scanoss.java/compare/v0.5.2...v0.5.3

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.scanoss</groupId>
88
<artifactId>scanoss</artifactId>
9-
<version>0.5.2</version>
9+
<version>0.5.3</version>
1010
<packaging>jar</packaging>
1111
<name>scanoss.java</name>
1212
<url>https://github.com/scanoss/scanoss.java</url>

src/main/java/com/scanoss/Scanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public List<String> processFileList(@NonNull String root, @NonNull List<String>
315315
if (!filterFile(nameLower)) {
316316
Path fullPath = Path.of(root, file);
317317
File f = fullPath.toFile();
318-
if (f.exists() && f.isFile() && f.length() > 0) {
318+
if (f.exists() && f.isFile() && f.length() > 0 && ! Files.isSymbolicLink(fullPath)) {
319319
Future<String> future = executorService.submit(() -> processor.process(file, stripDirectory(root, file)));
320320
futures.add(future);
321321
}

0 commit comments

Comments
 (0)