Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectorySeparator issue when black or forward slash. #1102

Merged
merged 1 commit into from
Feb 12, 2021
Merged

DirectorySeparator issue when black or forward slash. #1102

merged 1 commit into from
Feb 12, 2021

Conversation

leigh-pointer
Copy link
Contributor

Tested on Apple mac and Windows

@@ -37,11 +37,11 @@ public async Task<Folder> GetFolderAsync(int siteId, [NotNull] string folderPath
{
if (!(folderPath.EndsWith(System.IO.Path.DirectorySeparatorChar) || folderPath.EndsWith(System.IO.Path.AltDirectorySeparatorChar)))
{
folderPath = Utilities.PathCombine(folderPath, "\\");
folderPath = Utilities.PathCombine(folderPath, System.IO.Path.DirectorySeparatorChar.ToString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please provide two unit tests for FileService & FolderService to ensure nothing is broken?

@sbwalker sbwalker merged commit 6adda2b into oqtane:dev Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants