Hopefully fix #159

Former-commit-id: fee7b5c6a519d5a6ff26b2a653a3c82984f1dead [formerly 7fee30ae26f6941db1b718b64adfa6250aaf82c3] [formerly 46a761a926a67c0d0f8f49e84369912eba1377ef [formerly fbd0cf0c14]]
Former-commit-id: 4bdbf9a31f827d8aa36bad9b89f27bd5a373b75c [formerly 7e747b4e27d6958ff8448b5e5e2fe6716821a9ff]
Former-commit-id: a30d3b204d318b1d84e8583d5bbdbc6761852e2a
This commit is contained in:
Henrique Dias 2017-07-27 12:32:10 +01:00
parent 3469d8c6e8
commit 73d74394c8

View File

@ -52,7 +52,7 @@ func parse(c *caddy.Controller) ([]*filemanager.FileManager, error) {
// Get the baseURL and baseScope
args := c.RemainingArgs()
if len(args) == 1 {
if len(args) >= 1 {
directory = args[0]
}