dcache icon indicating copy to clipboard operation
dcache copied to clipboard

Replace dCache's 'DirectoryStream' with Java's 'DirectoryStream'

Open LukasMansour opened this issue 2 years ago • 0 comments
trafficstars

Motivation: Closes #3821

Modification: Replaces dCache's old 'DirectoryStream' with Java's 'DirectoryStream'.

Removing dCache's old DirectoryStream results in some empty IOException catch-blocks that shouldn't be throwable...

Result: The returned Streams of DirectoryEntry are now always a type of JDK's NIO DirectoryStream<DirectoryEntry>, dCache's custom DirectoryStream is removed. There are some empty (throw RuntimeException) blocks for IOExceptions that are not throwable. They appear since the JDK Interface Closable defines a close()-method with an IOException Throwable. and DirectoryStream inherits from Closable.

Signed-off-by: Lukas Mansour [email protected]

LukasMansour avatar Aug 01 '23 13:08 LukasMansour