Create file directory on the AOS fileserver from code
WinAPIServer does not have createDirectory method, so best option is to use ClrInterop.
static void createFileDirectory(Args _args)
{
FilePath path;
new InterOpPermission(InteropKind::ClrInterop).assert();
System.IO.Directory::CreateDirectory(path);
CodeAccessPermission::revertAssert();
}
This posting is provided "AS IS" with no warranties, and confers no rights.
Comments
- Anonymous
June 18, 2008
PingBack from http://axaptasource.com/2008/06/create-file-directory-on-the-aos-fileserver-from-code-8/