Am Montag, den 06.02.2017, 14:36 +0100 schrieb Sascha Manns: > I removed now the relative path from EntityfileLocal and used: > > private static string ProjectDir => Targetdir + > Path.DirectorySeparatorChar + PublicationTitle + > Path.DirectorySeparatorChar + > Language + Path.DirectorySeparatorChar; > Directory.SetCurrentDirectory(ProjectDir); // is in that case > /home/sascha/Dokumente/publican-xcom/articles/Test/de-DE/ > > The directory is created in the method before that one and it's > filled: > > sascha@sascha-desktop:~/Dokumente/publican-xcom/articles/Test/de-DE$ > ls > Article_Info.xml Author_Group.xml images Revision_History.xml Tes > t.ent Test.xml > > But after SetCurrentDirectory i'm getting: > > System.IO.DirectoryNotFoundException: Directory > "/home/sascha/Dokumente/publican-xcom/articles/Test/de-DE/" not found > > The directory is in my /home/sascha and it's writable and accessable. I found out something. The last method which will be executed before my try to access with Directory.SetCurrentDirectory is:
private static void CreateDocu(string createstring)
{
var startInfo = new ProcessStartInfo
{
FileName = @"/usr/bin/publican",
Arguments = @"" + createstring
};
Process.Start(startInfo);
}
This process creates the needed directories and it looks like my
program doesn't wait for finishing the started process. But what can i
do that the Directory.SetCurrentDirectory waits 10 seconds or so?
Greetings
Sascha
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Mono-list maillist - [email protected] http://lists.dot.net/mailman/listinfo/mono-list
