Skip to content

IUtilities Interface

Exposed utilities in Fast Video Cataloger.

Methods

Method Returns Description
Mask(long video_id) void Mask a video file given its ID in the catalog
Unmask(long video_id) void Unmask a video file given its ID in the catalog
ConvertToLocalPath(string path) string Convert a path to a local path, replacing known [folder] placeholders with actual paths
ConvertFromLocalPath(string path) string Convert a local path back to use [folder] placeholders

Path Conversion

Fast Video Cataloger uses special folder placeholders like [videos] to allow catalogs to be portable between computers. Use ConvertToLocalPath() to get the actual file system path.

Example

IUtilities utilities = scripting.GetUtilities();

// Get the actual path to a video file
var entry = catalog.GetVideoFileEntry(videoId);
string localPath = utilities.ConvertToLocalPath(entry.FilePath);
console.WriteLine($"Actual path: {localPath}");

// Check if file exists
if (System.IO.File.Exists(localPath))
{
    console.WriteLine("File found!");
}

// Mask/unmask videos
utilities.Mask(videoId);     // Hide the video
utilities.Unmask(videoId);   // Show the video again

See Also