added getDir for file widget