>> System.IO.Directory.Move("/tmp/www-data-temp-aspnet-0",
>> "/tmp/www-data-temp-aspnet-0.old");
>
> Have you called this from an ASP.NET app? Otherwise it won't
> work.
I called it from asmx web service:
[WebMethod]
public string Test() {
try
{
System.IO.Directory.Move("/tmp/www-data-temp-aspnet-0",
"/tmp/www-data-temp-aspnet-0.old");
}
catch (Exception ex)
{
return "Move error " + ex.ToString();
}
return "moved";
}
Andrus.
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list