Problemunvalidated
Files.list(parent).findAny().isEmpty — we do a bunch of file operations like reading, copying etc. Tension: The returned stream contains a reference to an open directory. The directory is closed by closing the stream. Outcome: that does not seem to be the case, at least with findAny.
aff727c3-2ded-4a02-9150-0ea3959cd621
Files.list(parent).findAny().isEmpty — we do a bunch of file operations like reading, copying etc. Tension: The returned stream contains a reference to an open directory. The directory is closed by closing the stream. Outcome: that does not seem to be the case, at least with findAny.