Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » SFTP or full SSH2 support for U++? (Discussion about implementing the SSH2 protocol using libssh2)
Re: SFTP or full SSH2 support for U++? [message #48659 is a reply to message #48650] Mon, 14 August 2017 12:41 Go to previous messageGo to previous message
Tom1
Messages: 1216
Registered: March 2007
Senior Contributor
Hi Oblivion,

Thanks for the update. Smile

Not sure if this has anything to do with the update, but I have trouble concatenating the following procedure to conditionally create a directory:
...
	if(session.IsSuccess()){
		SFtp::DirList list;
		SFtp sftp(session);
			
		sftp.Clear();
		sftp.StartListDir(directoryname,list);
		sftp.StartClose();
		if(sftp.Execute()) return true; // Reading the directory successfully proves it exists

		sftp.Clear();
		sftp.StartMakeDir(directoryname,0755);
		sftp.StartClose();
		return sftp.Execute();
	}
...


The MakeDir part fails when done after ListDir. If I establish a separate SFtp instance for both ListDir and MakeDir, it works OK. Is it supposed to work that way?

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help needed with link errors (serversocket)
Next Topic: Ultimate++ repo and chat?
Goto Forum:
  


Current Time: Fri May 17 01:36:18 CEST 2024

Total time taken to generate the page: 0.03024 seconds