def test_getfacl(self): hdfs_client.getfacl( "/tmp/test", executor=lambda command, *args: self.assertEqual( build_command(command, *args), "hadoop fs -getfacl /tmp/test" ), )
def get_acls(self): """ Returns the ACLs of files and directories. If a directory has a default ACL, getfacl also displays the default ACL. """ _result = fs.getfacl(self.path) return str(_result.stdout).splitlines() if _result.is_ok() else None
def get_acls(self): """ Returns the ACLs of files and directories. If a directory has a default ACL, getfacl also displays the default ACL. """ _result = fs.getfacl(self.path) return str(_result.stdout).splitlines() if _result.is_ok() else None
def test_getfacl(self): hdfs_client.getfacl( "/tmp/test", executor=lambda command, *args: self.assertEqual( build_command(command, *args), "hadoop fs -getfacl /tmp/test"))