Closed whiteboxsolutions closed 11 months ago
Thank you. I will check. Yet from the first glance the PR doesn't look OK (some overwrite of Folders with Folder which feels weird and backward compatibility breaking is happening in the PR).
What special characters are you trying to use? I'd appreciate a few samples.
I'll better add test cases with special chars and make sure it works to start with.
Ah, it looks like my commit pulled in a bunch of pending changes on the dev branch - the only changes I made were to lines 189 and 209
I'll revoke and resubmit tonight
The special characters I'm looking at are # and %
/sites/site/Shared Documents/Test #2/frame %.txt
for example
The special characters I'm looking at are # and %
Thank you! I'll add them to tests and check it out over the weekend.
Hey @whiteboxsolutions,
Please try web.EnsureFolderByPath
method it should support special characters in folder paths.
I kept web.EnsureFolder
as is for backwards compatibility with SharePoint 2013.
Going to close, feel free to reopen if you have questions or I miss something during testing.
Is your feature request related to a problem? Please describe. The current EnsureFolder method doesn't allow for the use of decodedURL (in the same vein as GetFolderByPath or GetFileByPath). This results in an inability to ensure that folders including special characters exist.
Describe the solution you'd like Change the method to use GetFolderByPath instead of GetFolder
Submitting PR momentarily