//of.delete();
//of = sftp.openFile(file, RW);
sftp.changePermissions(of, "rwxr--r--");
out = new BufferedOutputStream(new SftpFileOutputStream(of));
in = new BufferedInputStream(i);
//Log.debug(getLocalPath() + ":" + file+ ":"+getPWD());
byte[] buf = new byte[smbBuffer];
int len = 0;