Skip to content

file:list_dir/2 and file:list_dir_all/2 that would support raw option #10593

@hauleth

Description

@hauleth

Is your feature request related to a problem? Please describe.

I am implementing 9p protocol with module that will expose Unix Filesystem over that protocol. The problem is, that file:list_dir*/1 functions always go through file server, which mean that I cannot test it properly from single VM, as there is deadlock - file:list_dir("/mountpoint") will clog fileserver so the implementation cannot list directory content.

Describe the solution you'd like

New functions, that will accept 2nd parameter being property list of options that will (currently) support only one option - raw - that will do call to prim_file without going through fileserver would solve this issue.

Describe alternatives you've considered

Probably for now I will call private prim_file:list_dir/1 function directly, as otherwise that functionality breaks. But for consistency with other functions in file module, it would be probably best to expose raw mode to directory listing as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstalledwaiting for input by the Erlang/OTP teamteam:VMAssigned to OTP team VM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions