changed path in case the path is "files/*" and removed the / before "files/