// DriveLetterDivert

// Called by Directory Opus to initialize the script
function OnInit(initData)
{
	initData.name = "DriveLetterDivert";
	initData.version = "1.0";
	initData.copyright = "(c) 2024 Leo Davidson";
	initData.url = "https://resource.dopus.com/t/drive-letters-from-google-drive-on-dopus-toolbar-changed-behavior/51689/8";
	initData.desc = "Go somewhere else instead of a drive letter";
	initData.default_enable = true;
	initData.min_version = "13.0";
}

// Called before a new folder is read in a tab
function OnBeforeFolderChange(beforeFolderChange)
{
	var fsu = DOpus.FSUtil;
	if (fsu.ComparePath(beforeFolderChange.path, "G:\\"))
	{
		return "D:\\Google Drive";
	}
}
