BUG 8665: additional bug fix, error at time to download from an empty directory.
BUG 8665: small change to fit the standars
Merge pull request #1704 from ralpheav/master

BUG 8665: small change to fit the standars