| ... | ... | @@ -850,12 +850,16 @@ pub const Dir = struct { |
| 850 | 850 | /// Same as `openDirTraverse` except the path parameter is UTF16LE, NT-prefixed. |
| 851 | 851 | /// This function is Windows-only. |
| 852 | 852 | pub fn openDirTraverseW(self: Dir, sub_path_w: [*:0]const u16) OpenError!Dir { |
| 853 | const w = os.windows; |
| 854 | |
| 853 | 855 | return self.openDirAccessMaskW(sub_path_w, w.STANDARD_RIGHTS_READ | w.FILE_READ_ATTRIBUTES | w.FILE_READ_EA | w.SYNCHRONIZE | w.FILE_TRAVERSE); |
| 854 | 856 | } |
| 855 | 857 | |
| 856 | 858 | /// Same as `openDirList` except the path parameter is UTF16LE, NT-prefixed. |
| 857 | 859 | /// This function is Windows-only. |
| 858 | 860 | pub fn openDirListW(self: Dir, sub_path_w: [*:0]const u16) OpenError!Dir { |
| 861 | const w = os.windows; |
| 862 | |
| 859 | 863 | return self.openDirAccessMaskW(sub_path_w, w.STANDARD_RIGHTS_READ | w.FILE_READ_ATTRIBUTES | w.FILE_READ_EA | w.SYNCHRONIZE | w.FILE_TRAVERSE | w.FILE_LIST_DIRECTORY); |
| 860 | 864 | } |
| 861 | 865 | |