File tree Expand file tree Collapse file tree
java/org/apache/commons/io
test/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 * @author Martin Cooper
6464 * @author <a href="mailto:jeremias@apache.org">Jeremias Maerki</a>
6565 * @author Stephen Colebourne
66- * @version $Id: FilenameUtils.java,v 1.20 2004/10/30 22:41:57 scolebourne Exp $
66+ * @version $Id: FilenameUtils.java,v 1.21 2004/10/30 22:43:21 scolebourne Exp $
6767 * @since Commons IO 1.1
6868 */
6969public class FilenameUtils {
@@ -104,44 +104,6 @@ public class FilenameUtils {
104104 */
105105 public FilenameUtils () { }
106106
107- /**
108- * Check if a file exits.
109- *
110- * @param fileName The name of the file to check.
111- * @return true if file exists.
112- */
113- // KILL: Not filename based
114- public static boolean fileExists (String fileName ) {
115- File file = new File (fileName );
116- return file .exists ();
117- }
118-
119-
120-
121- /**
122- * Deletes a file.
123- *
124- * @param fileName The name of the file to delete.
125- */
126- // KILL: Not filename based
127- public static void fileDelete (String fileName ) {
128- File file = new File (fileName );
129- file .delete ();
130- }
131-
132- /**
133- * Simple way to make a directory. It also creates the parent directories
134- * if necessary.
135- * @param dir directory to create
136- */
137- // KILL: Not filename based
138- public static void mkdir (String dir ) {
139- File file = new File (dir );
140- if (!file .exists ()) {
141- file .mkdirs ();
142- }
143- }
144-
145107 /**
146108 * Remove extension from filename.
147109 * ie
Original file line number Diff line number Diff line change 3030 * @author Peter Donald
3131 * @author Matthew Hawthorne
3232 * @author Martin Cooper
33- * @version $Id: FilenameUtilsTestCase.java,v 1.14 2004/10/30 22:41:56 scolebourne Exp $
33+ * @version $Id: FilenameUtilsTestCase.java,v 1.15 2004/10/30 22:43:21 scolebourne Exp $
3434 * @see FilenameUtils
3535 */
3636public class FilenameUtilsTestCase extends FileBasedTestCase {
@@ -75,14 +75,6 @@ protected void tearDown() throws Exception {
7575 FileUtils .deleteDirectory (getTestDirectory ());
7676 }
7777
78- // mkdir
79-
80- public void testMkdir () {
81- File dir = new File (getTestDirectory (), "testdir" );
82- FilenameUtils .mkdir (dir .getAbsolutePath ());
83- dir .deleteOnExit ();
84- }
85-
8678 // removePath
8779
8880 public void testRemovePath () {
You can’t perform that action at this time.
0 commit comments