예제 #1
0
        public Dossier Creat_sdirec(string name, DateTime d, Dossier user, Utulisateur newuser, int id)
        {
            Dossier[] list = user.Getlistdir();
            if (Exists(name, list))
            {
                return(null);
            }
            else

            {
                db.Insertdirectoryd(name, newuser.GetNom(), "RW", d, 0, user.GetNom(), id);
                Dossier newdirectory = new Dossier(name, d, user.GetProprietaire(), user, db.lastindex());
                user.Setlisd(newdirectory);


                return(newdirectory);
            }
        }