Skip to content

Commit

Permalink
fix paths.indexdir bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-leonard committed Feb 12, 2015
1 parent 75c4cb1 commit 1db2eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexdir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function paths.indexdir(pathList, extensionList, use_cache)
local fileList = torch.CharTensor() -- path to each image in dataset
pathList = (torch.type(pathList) == 'string') and {pathList} or pathList
-- repository name makes cache file unique
local unique = table.concat(paths)..table.concat(extensionList)
local unique = table.concat(pathList)..table.concat(extensionList)
-- use hash to make string shorter
local findFile = torch.md5.sumhexa(unique)
findFile = paths.concat(paths.dirname(os.tmpname()), findFile)
Expand Down

0 comments on commit 1db2eff

Please sign in to comment.