Kotlin / kotlinx-io

Kotlin multiplatform I/O library
Apache License 2.0
1.22k stars 56 forks source link

Support getting a canonical file Path #223

Open jeffdgr8 opened 1 year ago

jeffdgr8 commented 1 year ago

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 commented 7 months ago

@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?

fzhinkin commented 7 months ago

Yes, need to support canonicalization without link resolution.

mipastgt commented 1 month ago

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