<font class="small">Code:</font><hr /><pre> -- a function frequently used fn f_max a b = (if (a > b) then a else b) -- the method returns the "next" upper directory of a path -- so "C:\\gigatexture\\europe\\" will return "C:\\gigatexture\\" -- it will always return a minimum of "C:\\" -- at least should I havent tested the…