throw new ArgumentNullException("fileInfo");
Contract.EndContractBlock();
- var relativeUrl = fileInfo.AsRelativeUrlTo(accountPath);
+ var relativeUrl = fileInfo.WithProperCapitalization().AsRelativeUrlTo(accountPath);
//The first part of the URL is the container
var slashIndex = relativeUrl.IndexOf('/');
var container = relativeUrl.Substring(0, slashIndex);