Re: System.IO.DirectoryNotFoundException: Could not find a part of the path

Sascha Manns <[email protected]> Mon, 06 Feb 2017 14:36:26 +0100
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
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  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
       
      

      [email protected]

      GPG:
      0x168428cdb1f20ab1

      jabber:
      [email protected]
    

              
        
 Maifeldstraße 10

         56727 Mayen

        mobile: +49-1573-9242730

         home: +49-2651-4014045
        

        https://saigkill.tuxfamily.org
      

    
    
      
    
    
      
    
    
      
    
    
      
    
    
    
    
      
    
    
      
    
    
    
      
    
    
      
    
    
    
      
    
    
      
    
    
    
      
    
    
      
    
    
    

    
  

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.dot.net/mailman/listinfo/mono-list
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAABCAAGBQJYmHvaAAoJEHUnY+i/qDossyMQAKlotE8C+uU6Hp7aE08p+XtM
u3AXpQ7cIymFtqeQaKhQDct/O3AfbgONflgE93wYZ3NK4XKTOh6veqmkroi3S47w
h98hEtUuWeTGJt9V1vGtB02ZDA+At8KF8mBTsKNMzw6jJQVGegFJV2tXo11VKafy
eYB1OWU0tmdBDauIJGMjxVz9GHxZ5sY3u2UpSqlhSzn/dEySSvUabRhkm7t5B1ZN
7IrcEJ2COLime6vHAHIS8BTb2dm1u7Dw/xK+bSnZy2JrsQSRBWuIbFWrtBXtvPWI
l2CLpHFbh21Dn3p6A32SLFBboE+f9jplBsZP358qlF1UDwhPgvDGbiZKyV610WGd
v250IfkWk8KCF21Poi+Zp61LSVFtZmKtt1FITcGJY+E+/ZO89AcDG5w/Mxou8C9i
lEeHTJRXI8h+URNQVl8uJJLWu+bgMRGZ6+r8kmxNbykwDVISb+Plw4hdiiCLr30d
QT4hdxdgLLeYPufLt8+eY9lTfB50rkdrHxdzsIfWv42bZwdaN4gZtt6aI8Y8+te3
Ar+abEkgvK0eIZia37s+ipRIe+AjpGAzrK1bit9vFc3bk315VL/HH1jzMr8SaGYm
AgvCXbVTKRZGqnHmGIV/iWDZerfY4Bo7PQGARy0azh9gQ79S1rR+G6clR1A0PaCM
3OdvT8ikKa2OPoceFIa3
=qkHe
-----END PGP SIGNATURE-----