Add helper function to get a filesize
Don't try to import empty file

See bug #9578.
Bug #9578: Don't import dot folders

Dot files are still imported though ...