void () { assumeWindows(); File file = new File("C:\\Documents and Settings\\desktop.ini"); assumeTrue("Documents and Settings assumed to exist", file.exists()); String parent = FileUtil.toSystemIndependentName(file.getParent()); VfsRootAccess.allowRootAccess(getTestRootDisposable(), parent); VirtualFile virtualFile = myFS.refreshAndFindFileByIoFile(file); assertNotNull(virtualFile); NewVirtualFileSystem fs = (NewVirtualFileSystem)virtualFile.getFileSystem(); FileAttributes attributes = fs.getAttributes(virtualFile); assertNotNull(attributes); assertEquals(FileAttributes.Type.FILE, attributes.getType()); assertTrue(attributes.isHidden()); }