def METHOD_NAME(self):
    """Test that hidden files and folders are excluded."""
    # Check folders
    mtimes = list(core.shares.share_dbs["mtimes"])
    self.assertNotIn(os.path.join(SHARES_FOLDER_PATH, ".abc"), mtimes)
    self.assertNotIn(os.path.join(SHARES_FOLDER_PATH, ".xyz"), mtimes)
    self.assertIn(os.path.join(SHARES_FOLDER_PATH, "folder1"), mtimes)
    self.assertIn(os.path.join(SHARES_FOLDER_PATH, "folder2"), mtimes)
    self.assertNotIn(os.path.join(SHARES_FOLDER_PATH, "folder2", ".poof"), mtimes)
    self.assertIn(os.path.join(SHARES_FOLDER_PATH, "folder2", "test"), mtimes)
    self.assertIn(os.path.join(SHARES_FOLDER_PATH, "something"), mtimes)
    # Check files
    files = core.shares.share_dbs["files"]["Shares"]
    self.assertNotIn([".abc_file", 0, None, None], files)
    self.assertNotIn([".hidden_file", 0, None, None], files)
    self.assertNotIn([".xyz_file", 0, None, None], files)
    self.assertIn(["dummy_file", 0, None, None], files)
    self.assertEqual(len(files), 4)