[Mono-list] System.IO.DirectoryNotFoundException: Could not find a part of the path

Sascha Manns Sascha.Manns at mailbox.org
Mon Feb 6 13:36:26 UTC 2017


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 at sascha-desktop:~/Dokumente/publican-xcom/articles/Test/de-DE$ ls
Article_Info.xml  Author_Group.xml  images  Revision_History.xml  Test.
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.

Greetings
Sascha
-- 


    
        
            

        
    
    Sascha Manns
       
      

      Sascha.Manns at mailbox.org

      GPG:
      0x168428cdb1f20ab1

      jabber:
      Sascha.Manns at jabber.org
    

              
        
 Maifeldstraße 10

         56727 Mayen

        mobile: +49-1573-9242730

         home: +49-2651-4014045
        

        https://saigkill.tuxfamily.org
      

    
    
      
    
    
      
    
    
      
    
    
      
    
    
    
    
      
    
    
      
    
    
    
      
    
    
      
    
    
    
      
    
    
      
    
    
    
      
    
    
      
    
    
    

    
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20170206/be38df75/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20170206/be38df75/attachment-0001.sig>


More information about the Mono-list mailing list