func (s *fuseTestSuite) TestRmdir() { datasetName := "TestRmdir" str := spec.CreateValueSpecString("ldb", s.LdbDir, datasetName) var testfs pathfs.FileSystem start(str, func(fs pathfs.FileSystem) { testfs = fs }) code := testfs.Mkdir("wikileaks", 0755, nil) assert.Equal(s.T(), fuse.OK, code) assertAttr(s, testfs, "", 0777|fuse.S_IFDIR, 1) // 1 means it's there code = testfs.Rmdir("wikileaks", nil) assert.Equal(s.T(), fuse.OK, code) assertAttr(s, testfs, "", 0777|fuse.S_IFDIR, 0) // 0 means no entries }