By fixing Issue #682 the loadEmails function in GreenMail.java got broken on Windows machines, because C:\ is always hidden.
Even if C:\ wasn't hidden no directory in Paths.get(System.getProperty("java.io.tmpdir") can be used as these directories are created in C:\Users\user\AppData\Local\Temp and AppData is also hidden.
Suggestion: only check for hidden parents that are subdirectories of the used sourceDirectory, or use a flag to skip the hidden directory check.
This holds true for OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) on windows 10 and 11.
By fixing Issue #682 the
loadEmails
function inGreenMail.java
got broken on Windows machines, becauseC:\
is always hidden.Even if C:\ wasn't hidden no directory in
Paths.get(System.getProperty("java.io.tmpdir")
can be used as these directories are created inC:\Users\user\AppData\Local\Temp
and AppData is also hidden.Suggestion: only check for hidden parents that are subdirectories of the used
sourceDirectory
, or use a flag to skip the hidden directory check.This holds true for OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7) on windows 10 and 11.