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