TCFileManager add Methosd isDirectory and add Tests