Beispiel #1
0
        protected void eraseFiles(string filesEndingWith)
        {
            File tmpdirF = new File(tmpdir);

            string[] files = tmpdirF.list();
            for (int i = 0; files != null && i < files.length; i++)
            {
                if (files[i].endsWith(filesEndingWith))
                {
                    new File(tmpdir + "/" + files[i]).delete();
                }
            }
        }
Beispiel #2
0
        protected void eraseFiles()
        {
            if (tmpdir == null)
            {
                return;
            }

            File tmpdirF = new File(tmpdir);

            string[] files = tmpdirF.list();
            for (int i = 0; files != null && i < files.length; i++)
            {
                new File(tmpdir + "/" + files[i]).delete();
            }
        }