3 ms·
When dealing with hierarchical file systems, very few places include that trailing slash when referring to the directory. In most places it’s optional and ignor
by chrismorgan 5y ago
When dealing with hierarchical file systems, very few places include that trailing slash when referring to the directory. In most places it’s optional and ignored. In a few places, including the trailing slash will change behaviour (e.g. rsync, mv, and where symlinks to directories are involved where it’s just all completely unpredictable and varies widely).
This analogy would be an argument for allowing a trailing slash and redirecting to sans-slash, but not for requiring a slash.