Hi to all, in my job I have to check if a directory exists and currently I have to write:Path myDir = new Path(...);boolean exists = FileSystem.get(myDir.toUri()).exists(myDir);Is there a better way to achieve this?Best,Flavio
You can also do "myDir.getFileSystem().exists(myDir)", but I don't think there is a shorter way...On Mon, Jun 29, 2015 at 12:39 PM, Flavio Pompermaier <[hidden email]> wrote:Hi to all, in my job I have to check if a directory exists and currently I have to write:Path myDir = new Path(...);boolean exists = FileSystem.get(myDir.toUri()).exists(myDir);Is there a better way to achieve this?Best,Flavio