Skip to content

Wrong write bytes with macosX64 target  #407

Open
@FirstAM

Description

Problem

Error copy file via kotlinx-io, ( copy bytes from one file to another)
in my case i have different size of files

-rw-r--r--@  1 user  LD\Domain Users  593521 Oct 22 17:57 test.zip
-rw-r--r--@  1 user  LD\Domain Users  589824 Oct 22 17:57 test1.zip

How to reproduce:

val filePath = Path("somePathToOldFile")
val bytes = SystemFileSystem.source(filePath).buffered().readByteArray()
SystemFileSystem.sink( Path("$projectPath/newFile")).buffered().write(bytes)

At the moment i can reproduce it only with macOS targest ( don't have the linux machine )

kotlin-io.zip
Or use unpack archive and do

./gradlew linkDebugExecutableMacosX64
chmod +x ./Projects.kexe
./Projects.kexe

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions