kotlinx-io icon indicating copy to clipboard operation
kotlinx-io copied to clipboard

Support getting a canonical file Path

Open jeffdgr8 opened this issue 2 years ago • 3 comments

Getting a file's canonical path is one of the few file APIs my library tests require that kotlinx-io doesn't currently support.

Similar API references:

jeffdgr8 avatar Sep 17 '23 00:09 jeffdgr8

@fzhinkin I just checked out this new FileSystem.resolve(Path) API in 0.3.1. The issue I ran into is the fact that it throws FileNotFoundException when the file doesn't exist. Would it be possible to have a way to get a canonical path even for non-existent files?

jeffdgr8 avatar Feb 02 '24 21:02 jeffdgr8

Yes, need to support canonicalization without link resolution.

fzhinkin avatar Feb 05 '24 09:02 fzhinkin

I have to say that this missing feature makes the whole library currently unusable for me. I hope that this can be fixed soon.

mipastgt avatar Jul 25 '24 09:07 mipastgt