#Checking if a File or Directory actually exists
1 messages · Page 1 of 1 (latest)
Related question: how could I check whether a path inside a Directory points to a File or a Directory,?
Update: I found a (very silly) way to do it!
https://gist.github.com/davidwallacejackson/3729ca59aaa613c81610a60fbf5721bb
I'd still much prefer a native way to do it in the API, though
I think we could expose a Stat call for this - all the code is there already internally. would you mind opening an issue? 🙂
could be something like Directory { stat(path: String) } and File { stat }
@kindred patio sorry, I didn't see that you had replied to this until just now! I made an issue: https://github.com/dagger/dagger/issues/3764