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

Fixed bug where root directory client could not be used to create files #7748

Merged
merged 2 commits into from
Jan 28, 2020

Conversation

gapra-msft
Copy link
Member

@gapra-msft gapra-msft commented Jan 27, 2020

Resolves #6592

@@ -134,6 +134,9 @@ public ShareServiceVersion getServiceVersion() {
*/
public ShareFileAsyncClient getFileClient(String fileName) {
String filePath = directoryPath + "/" + fileName;
if (directoryPath.isEmpty()) {
filePath = fileName;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment that this is to accommodate the root?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@gapra-msft gapra-msft merged commit 8eeb2a3 into Azure:master Jan 28, 2020
@gapra-msft gapra-msft deleted the storage/rootDirShareFile branch January 28, 2020 20:00
samvaity pushed a commit to samvaity/azure-sdk-for-java that referenced this pull request Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants