smallrye / smallrye-common

Common utilities for SmallRye
Apache License 2.0
21 stars 24 forks source link

Introduce a way to get "child" elements of the `Resource` abstraction #359

Open geoand opened 2 hours ago

geoand commented 2 hours ago

I encountered a case where I need to replace something that contains Path with something that will use Resourcebut I really need to know to be able to get the contents of the directory - if it is one.

dmlloyd commented 59 minutes ago

The methods Resource#isDirectory()/Resource#openDirectoryStream() should work for this use case. Could you try it?

geoand commented 54 minutes ago

That does the trick, thanks!