Revision 5e31048f trunk/Pithos.Interfaces/ObjectInfo.cs

b/trunk/Pithos.Interfaces/ObjectInfo.cs
114 114

  
115 115
        public ObjectInfo(string accountPath,string accountName,FileInfo fileInfo)
116 116
        {
117
            if (String.IsNullOrWhiteSpace(accountPath))
118
                throw new ArgumentNullException("accountPath");
119
            if (string.IsNullOrWhiteSpace(accountName))
120
                throw new ArgumentNullException("accountName");
121
            if (fileInfo == null)
122
                throw new ArgumentNullException("fileInfo");
123
            Contract.EndContractBlock();
124

  
117 125
            var relativeUrl = fileInfo.AsRelativeUrlTo(accountPath);
118 126
            //The first part of the URL is the container
119 127
            var slashIndex = relativeUrl.IndexOf('/');

Also available in: Unified diff