ENYO-2771: fix folder node retriving and escaping when the file already exists