Skip to content

Commit

Permalink
Correct indexdir example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaixhin committed Aug 12, 2015
1 parent 5e72798 commit 77a4785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ torch.md5.sumhexa('helloworld!')
<a name="paths.indexdir"/>
### [obj] paths.indexdir(path, [ext, use_cache, ignore]) ###
```lua
files = torch.indexdir("/path/to/files/", 'png', true)
files = paths.indexdir("/path/to/files/", 'png', true)
images = {}
for i=1,files:size() do
local img = image.load(files:filename(i))
Expand Down

0 comments on commit 77a4785

Please sign in to comment.