London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
UnifiedDirectory dir = UnifiedPageDirectory.Get(pd.PageLink);
string pageFileID = Convert.ToString(pd["PageFolderID"]); UnifiedDirectory pageFile = UnifiedFileSystem.GetDirectory( pageFileID ); //Is page directory does not exist, create one if (pageFile == null) pageFile = UnifiedFileSystem.CreateDirectory( pageFileID ); //Create a file pageFile.CreateFile("testing.txt");
The problem is that I do not get any directory object from neither GetDirectory nor CreateDirectory.