path=="" 
should be
path.equal("")