use meta_type to implement parent class isFile() and isDir()