Best attempt when creating a folder marker (fixes #857)