CFileItemPtr pFileItem = GetFileItem(pathToFileOrDirectory); bool isDVD = pFileItem->IsDVD(); if (isDVD) { // do something with the DVD file } else { // do something else }In this example, we first retrieve a CFileItemPtr object for a specified file or directory using the GetFileItem() function. We then call the IsDVD() function on the CFileItemPtr object to determine if it represents a DVD. If it does, we can perform operations on the DVD file. If not, we can perform other operations. The CFileItemPtr class is part of the Kodi Add-ons package library.