mirror of
https://github.com/go-i2p/go-i2p-bt.git
synced 2025-07-13 11:54:35 -04:00
the directory to create Info must contain a file at least
This commit is contained in:
@ -80,6 +80,10 @@ func getAllInfoFiles(rootDir string) (files []File, err error) {
|
||||
return nil
|
||||
})
|
||||
|
||||
if err == nil && len(files) == 0 {
|
||||
err = fmt.Errorf("no files in the directory '%s'", rootDir)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user