@@ -4282,7 +4282,8 @@ def ftruncate(self, fd, length):
42824282 file_object = self .filesystem .get_open_file (fd ).get_object ()
42834283 file_object .size = length
42844284
4285- def access (self , path , mode , * , dir_fd = None , follow_symlinks = True ):
4285+ def access (self , path , mode , * , dir_fd = None , effective_ids = False ,
4286+ follow_symlinks = True ):
42864287 """Check if a file exists and has the specified permissions.
42874288
42884289 Args:
@@ -4291,12 +4292,16 @@ def access(self, path, mode, *, dir_fd=None, follow_symlinks=True):
42914292 os.F_OK, os.R_OK, os.W_OK, and os.X_OK.
42924293 dir_fd: If not `None`, the file descriptor of a directory, with
42934294 `path` being relative to this directory.
4295+ effective_ids: (bool) Unused. Only here to match the signature.
42944296 follow_symlinks: (bool) If `False` and `path` points to a symlink,
42954297 the link itself is queried instead of the linked object.
42964298
42974299 Returns:
42984300 bool, `True` if file is accessible, `False` otherwise.
42994301 """
4302+ if effective_ids and self .filesystem .is_windows_fs :
4303+ raise NotImplementedError (
4304+ 'access: effective_ids unavailable on this platform' )
43004305 path = self ._path_with_dir_fd (path , self .access , dir_fd )
43014306 try :
43024307 stat_result = self .stat (path , follow_symlinks = follow_symlinks )
0 commit comments