The script takes into account the trailing slash