<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>success</status>
  <result>
    <project>
      <id>60227</id>
      <name>cifsclient</name>
      <created_at>2008-12-17T21:43:47Z</created_at>
      <updated_at>2008-12-17T21:43:48Z</updated_at>
      <description>CIFSClientThis library has been created to add some features unavailable at the moment in  Mono implementation of C# . 

At same time, CIFSClient make more easy migration aplications who work with servers CIFS (Samba). 

CIFSClient it's a C# wrapper of C samba libs and win32 libs. 

CIFSClient works transparently with shared files, and use functions who all developers know. 

Avaible functions:Copy (string, string, bool)
CreateDirectory (string)
Delete (string)
DeleteDirectory (string)
DirectoryExists(string) : bool
Exists (string) : bool
Move (string, string)
ReadDir (string) : CIFSDirInfo
Rename (string, string)
RenameDirectory(string, string)
ShareEnum (string) : SharesRequeriments:Kernel 2.6 1 Mono version 1.2.x or great SambaClient version 2 or great Example code:      using System;
      using CIFSClient; //utilitzem el namespace CIFSClient
      using System.IO;
      namespace Exemple
      {
        class MainClass
        {
          public static void Main(string[] args)
          {
             //ruta remota
             string remot=&quot;//jmartin-desktop/fotos/&quot;;
             //ruta local
             string local=&quot;temp&quot;;
             //text de sortida
             string restext=&quot;&quot;;
             //text per guardar l'extensi&#243; dels fitxer
             string ext=&quot;&quot;;
             //si no existeix la carpeta local la crea
             if (!Directory.Exists(local)){
               Directory.CreateDirectory(local);
             }
             //instanciar un objecte de la biblioteca
             Cifs cifs = new Cifs();
             try{
               //llegim el contingut del directori remot
               CIFSDirInfo rdir = cifs.ReadDir(remot);
               //recorrem tots els fitxers
               foreach(String file in rdir.GetFiles() ){
                  ext=file.Split('.')[1];
                  //mirem si tenen l'extensi&#243; jpg
                  if (ext==&quot;jpg&quot;){
                    //copiem el fitxer remot a la carpeta local (permetem reescriure)
                    cifs.Copy(remot+file,local+&quot;/&quot;+file,true);
                    restext+=&quot;S'ha copiat el fitxer remot (&quot;+remot+file+ &quot;)&quot;;
                    restext+=&quot;a (&quot;+local+&quot;/&quot;+file+&quot;)&quot;;
                    restext+=System.Environment.NewLine;
                  }
               }
             }
             //controlem la excepci&#243; en cas que no tenir permisos per navegar la
      carpeta.
             catch (UnauthorizedAccessException e){
               restext+=&quot;Error: No hi ha permisos per realitzar aquesta comanda.&quot;;
               restext+=System.Environment.NewLine;
             }
             //controlem l'excepci&#243; en cas de no existir la carpeta remota o local
             catch (System.IO.DirectoryNotFoundException e){
               restext+=&quot;Error: No s'ha trobat el directori.&quot;;
               restext+=System.Environment.NewLine;
             }
             //controlem l'excepci&#243; en cas de no poder llegir ho escriure els fitxers
             catch (System.IO.IOException e){
               restext+=&quot;Error: Al sistema de fitxers.&quot;;
               restext+=System.Environment.NewLine;
             }
             //controlem de forma gen&#232;rica qualsevol altra excepci&#243;
             catch (Exception e){
               restext+=&quot;Error: No definit.&quot;;
               restext+=System.Environment.NewLine;
             }
             System.Console.WriteLine(restext);
           }
         }
      }At this example CIFSClient helps to search all JPG images in one folder and copy them in local temp folder.</description>
      <homepage_url>http://code.google.com/p/cifsclient</homepage_url>
      <download_url></download_url>
      <url_name>cifsclient</url_name>
      <user_count>0</user_count>
      <average_rating></average_rating>
      <rating_count>0</rating_count>
      <analysis_id></analysis_id>
      <licenses>
        <license>
          <name>lgpl</name>
          <nice_name>GNU Lesser General Public License 2.1</nice_name>
        </license>
      </licenses>
    </project>
  </result>
</response>
