Posted: 11/21/07 09:04:40
lmartin92 wrote:
What is WebDav?.
The only reason I've named it WebClient? is because it does http and ftp !webdav(*unless webdav is http).
WebDav? is an extension to HTTP (via new methods like PROPGET, REPORT, etc), to make it possible to look at a remote http location as a file system. I believe the download itself, the transfer of data, still is done via the common HTTP methods.
Did you click the this in my top post. Well it shows you FileFolder? getting a file and mapping it to a VfsFile?(or something like that) and well I looked in the code in my dmd installation and failed to find the implementation of the file method. It is interfaced(*something like that) from a a VfsFolder? which has a definition of it though so I was wondering would it be safe to assume that which isn't implemented in file folder is safe for me to not implement it in my web client.
Do you mean final VfsFile file (char[] name) {} defined on line 131 of !FileFolder? An interface cannot have an implementation, so all those functions will need to be implemented in some fashion for the folder implementation to work.
I have no problem seperating Http and FTP clients though I think it would be nice if a user just gave you an url and it decided which to use.
Yes, but this should be handled at a different level. It may make sense to put it in the VirtualFolder implementation, at least that was how it was in the previous iteration of the VFS system.
Um is sftp and shttp supported by the FTPConnection and HttpClient? classes. If so I think it should work properly with webclient or separated http ftp clients if you so wish to use sftp and shttp.
No, neither https nor sftp is supported in Tango at this time. Note that I'm pretty certain that they use different encryption protocols, ssh for sftp and ssl for https. I believe you shouldn't need to worry about the secure versions from the onset - a later solution may add support by creating for instance a !SFtpFolder subclass of FtpFolder.
Some stuff I don't understand and sometimes I don't know exactly what to implement and what has been implemented. As far as web dav there was no plan for me to do that in the begining. If the protocol is as easy as ftp this will take me a couple months (because I can find cases in which ftp is hard though they are not common and I said that based on oppinion because I have tried to run a ftp server and boy did it die quick).
It always seems everytime I take on a new project I dig into D a little deeper and its libraries especially so as to find the way to get things done. I am a hobby programmer and this is for fun. I love d as its similarity to C# is spectacular(this is the other language I know and wish I hadn't learned because non native code is slow on my computer at least which is about one year old) and its native code compilation makes it a perfect.
Umm all shttp's i meant https just saw that and am too lazy to edit them one by one.
If you believe ftp is expiring and consider WebDav? more important I'll try to find out enough about web dav to write an implementation though this would be a new tree to bark up so to speak.
Well thanks for the help and future help,
Lester L. Martin II
Lester L. Martin II
Then please do the FtpFolder? first :) I'm pretty sure it will be much easier to do than WebDav?, as you should be able to use the ftp client in Tango for most of what is needed. I don't expect FTP do disappear tomorrow, just that we don't want to couple FTP and HTTP/WebDav too much.