#20801 updated folder hook to support slashes.