Add cast syntax check logic

-- TypeA for both cast and copy targetURL check shouldn't fail it it doesn't exist
   such is a common occurrence of not having a target, instead we verify if it exists
   is it a directory?
-- Rename all 'directory' references to folder
This commit is contained in:
Harshavardhana
2015-07-24 14:43:47 -07:00
parent df494eafdc
commit 1afc92cb49
20 changed files with 131 additions and 71 deletions
+3 -3
View File
@@ -107,18 +107,18 @@ func (s *MySuite) TestList(c *C) {
c.Assert(len(contents), Equals, 4)
var regularFiles int
var directories int
var folders int
for _, content := range contents {
if content.Type.IsRegular() {
regularFiles++
continue
}
if content.Type.IsDir() {
directories++
folders++
}
}
c.Assert(regularFiles, Equals, 3)
c.Assert(directories, Equals, 1)
c.Assert(folders, Equals, 1)
}
func (s *MySuite) TestPutBucket(c *C) {