Hi there, I'm saving a file to the UnifiedFileSystem as outlined in SDK. I'd like to add some data to the file meta-data, but whatever I add seems to not be saved.
UnifiedDirectory dir = UnifiedFileSystem.GetDirectory("/upload");
UnifiedFile file = dir.CreateFile("Myfile.txt");
file.Summary.Author = "Test";
Stream s = file.OpenWrite();
StreamWriter w = new StreamWriter(s);
w.WriteLine("Hello world!");
w.Close();
s.Close();
Should i be doing this some other way?
Regards, Ben Empson
UnifiedDirectory dir = UnifiedFileSystem.GetDirectory("/upload"); UnifiedFile file = dir.CreateFile("Myfile.txt"); file.Summary.Author = "Test"; Stream s = file.OpenWrite(); StreamWriter w = new StreamWriter(s); w.WriteLine("Hello world!"); w.Close(); s.Close();
Should i be doing this some other way? Regards, Ben Empson