File.getParent not working on dir

Fiji 1.53t

id=getImageID();
suffix = ".svs";
run("Bio-Formats Macro Extensions");
//setBatchMode(true);
if (isOpen(id)) {
	filename=getInfo("image.filename"); //has extension
//	start=indexOf(getImageInfo(), "Location = ");
//	stop=indexOf(getImageInfo(), filename);
//	slide=replace(substring(getImageInfo(), start, stop), "Location = ", "");
	slidepath=File.directory;
	cohort=File.getParent(slidepath); 

debugging it, does not move past File.getParent:

Memory		4583MB of 180000MB (2%)
nImages()		1
getTitle()		"NC_Cohort 1_61-pos_SLN_C00R0_hem.svs - Series 1"
id		-96
suffix		".svs"
filename		"NC_Cohort 1_61-pos_SLN_C00R0_hem.svs"
slidepath	*	"Y:\mIHC\SLN mIHC-Cohort 1\61-P16 pos\"

Ctrl-e does not do anything. Any clue?

Thanks