public void Lister_dossier(Utulisateur directory, float taille) { int i = 0; int stop = directory.Getlistfiles().Length; while (directory.Getlistfiles()[i] != null) { while (i < stop) { Console.WriteLine(i + 1 + "-" + directory.Getlistfiles()[i].GetNom() + "-" + directory.Getlistfiles()[i].GetDatecreation() + "-" + taille + directory.GetNom()); i++; } return; } }
private bool Existsfileu(Utulisateur directory, string name) { fichier[] list = directory.Getlistfiles(); int i = 0; int stop = list.Length - 1; while (i < stop) { while ((list[i] != null)) { if (list[i].GetNom().Equals(name)) { return(true); } else { i++; } } return(false); } return(false); }