Skip to content

FileNotFound issue when using NtCreateFile for parent directory #561

@guenhter

Description

@guenhter

Hi,

I have an issue deleting a whole folder and its hierarchy from within my program.
First I thought it is a problem with the standard library of my programming language Rust. After I opened an issue there (rust-lang/rust#126576) with the help of the incredible Rust community we narrowed down the problem and the chance is high, that the issue is in this driver.

What we narrowed down:

This is my folder hierarchy (to be deleted):

  foo
    bar
       some.txt

To delete this hierarchy, my code is doing the following high level operations (just pseudo code) with the standard functions CreateFileW and NtCreateFile:

let foo_dir = CreateFileW(...);
let bar_dir = NtCreateFile(parent=foo_dir, ...);
let some_file = NtCreateFile(parent=bar_dir, ...);  // This line returns now an error - code: 53, kind: NotFound

This problem happens only with this WINFSP driver for SFTP. I tried some alternatives, and there the operatoins work without a problem.

Do you have any idea why this could happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions