-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
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.