Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"Access denied" when trying to create a .wld file #52

@dariusuknuis

Description

@dariusuknuis

I have a folder that I have extracted wld fragments in, but when I try to run the create command it says this:

C:\git-libeq\libeq\target\debug>wld-cli.exe create globalfroglok2_chr output\globalfroglok2_chr.wld
CREATE: "globalfroglok2_chr" -> "output\globalfroglok2_chr.wld"
thread 'main' panicked at 'Could not open source file: globalfroglok2_chr: Os { code: 5, kind: PermissionDenied, message: "Access is denied." }', tools\wld-cli\src/main.rs:246:41
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

I did everything I could to make the folder accessible. It doesn't seem like the folder is the problem.

Possibly this line

let mut reader = File::open(source).expect(&format!("Could not open source file: {}", source));

Is it possible that "File::open" is for opening individual files and not a folder?

I am using wld-cli 0.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions