i am using okio on `mingwX64` and it seems to wor...
# squarelibraries
n
i am using okio on
mingwX64
and it seems to work without issues via poweshell and cmd but when executed in gitbash things seem to fall apart i am getting
Copy code
Uncaught Kotlin exception: okio.IOException: Permission denied
when calling
filesystem.delete(command.reportFile.toPath())
and
Copy code
Uncaught Kotlin exception: okio.FileNotFoundException: No such file or directory
when calling
val write: BufferedSink = fileSystem.appendingSink(command.reportFile.toPath()).buffer()
command.reportFile
is
/c/Users/nikky/dev/kotlin-cli-starter/git-standup-report.txt
the file exists and is writable:
Copy code
ls -la /c/Users/nikky/dev/kotlin-cli-starter/git-standup-report.txt
-rw-r--r-- 1 nikky 197121 407 Jun  4 10:41 /c/Users/nikky/dev/kotlin-cli-starter/git-standup-report.txt
cc @jmfayard
j
Oooh thanks for flagging this
Do you mind opening an Okio tracking bug for the this? I'll have to learn what the heck I'm supposed to do to support those file paths
n
what i do in windows (and jvm on windows) is check if
uname
exists and
anbume -a
returns
MSYS2
,
CYGWIN
,
MINGW
or such and just treat it like a linux system for executing commands eg.
echgo %cd%
on cmd.exe but
pwd
in gitbash or the like