update .gitignore to ignore IDEA project files
Adds updateFileList method to TransferManager. updateDirectory is delegated to updateFileList method.
adds check, if all files in fileList are actual files and not directories, in order for them to be uploaded.