FTPClientSession::createDirectory() to return std::string

Discussion of ideas for features and new projects based on POCO.
Posts: 1
Joined: 03 Nov 2008, 01:05
Location: Russia

FTPClientSession::createDirectory() to return std::string

Postby stu003 » 03 Nov 2008, 13:51

From RFC 959:

^''''Unfortunately, the argument to MKD may not always be a suitable argument for CWD. This is the case, for example, when a TOPS-20 subdirectory is created by giving just the subdirectory name. That is, with a TOPS-20 server FTP, the command sequence

will fail. The new directory may only be referred to by its 'absolute' name; e.g., if the MKD command above were issued while connected to the directory , the new subdirectory could only be referred to by the name .''''^

And then:

^''"To solve these problems, upon successful completion of an MKD command, the server should return a line of the form:

257 space " directory-name " space commentary

That is, the server will tell the user what string to use when referring to the created directory."''^

So I think it would be much more convenient if FTPClientSession::createDirectory() could return a string with a full path to the created directory that is returned with a server response.

Return to “Wishlist”

Who is online

Users browsing this forum: No registered users and 1 guest