My question is, if I setup the wxFSFile once with the URL, does that just copy the contents of the file to the wxFSFile, or is it a pointer to that location? In other words, if I called GetModificationTime() several times and nothing else, would it always return the same time even if the file had been modified on the website? Here's some code to illustrate:
Code: Select all
wxString url = "http://www.somewebsite.com/somefile.txt";
wxFileSystem fileurl;
wxFSFile* fsfile = fileurl.OpenFile(url);
wxDateTime start_time = fsfile->GetModificationTime();
// wait some time.. file from URL has now changed
wxDateTime current_time = fsfile->GetModificationTime();