Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Determining if a Filename path is a file or a directory

In this section, you will learn how to determining filename is a file or a directory.

Tutorial Details:

You can solve this problem very easily. What you need to do, just create a File object and pass some file name or a directory in it.

We are using a following methods to solve this problem.
isDirectory(): It checks whether the file is a directory or not.


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/file-directory.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Determining if a Filename path is a file or a directory

View Tutorial:
Determining if a Filename path is a file or a directory

Related Tutorials:

Automatic Software Distribution of Java Applications
Automatic Software Distribution of Java Applications
 
Java Tip 83: Use filters to access resources in Java archives - JavaWorld
Java Tip 83: Use filters to access resources in Java archives - JavaWorld
 
Java Tip 85: Fun and games with JFileChooser - JavaWorld
Java Tip 85: Fun and games with JFileChooser - JavaWorld
 
JavaWorld article about JavaCC
JavaWorld article about JavaCC
 
Add a file finder accessory to JFileChooser - JavaWorld
Add a file finder accessory to JFileChooser - JavaWorld
 
Encapsulate reusable functionality in JSP
This tutorial shows you how you can encapsulate the resuable functionality in JSP pages.
 
Make a splash with Swing - JavaWorld Tip 104
Make a splash with Swing - JavaWorld Tip 104
 
Automate your build process using Java and Ant - JavaWorld October 2000
Automate your build process using Java and Ant - JavaWorld October 2000
 
Jato: The new kid on the open source block, Part 2 - JavaWorld April 2001
Jato: The new kid on the open source block, Part 2 - JavaWorld April 2001
 
Superior app management with JMX - JavaWorld June
Integrate JMX, a reusable configuration framework, with your JSPs
 
Doclet your servlet!
Doclet your servlet!
 
Make a statement with javac!
Make a statement with javac!
 
Quickly access files and directories you use repeatedly
Quickly access files and directories you use repeatedly
 
Servlet 2.4: What's in store
Servlet 2.4: What's in store
 
Very interesting
Very interesting
 
Java Mime Magic Library
Java Mime Magic Library jMimeMagic is a Java library for determining the MIME type of files or streams.
 
Commons Launcher
The Launcher Component is designed to be a cross platform Java application launcher.
 
10 Minutes Guide to Ant
10 Minutes Guide to Ant 10 Minutes Guide to Ant Previous Tutorial Index Next Introduction Well for the next 10 minutes get ready to devote to the ant guide. This will make some sence to the ant. Ant is a free tool under GNU Licence and is
 
JSP FUNDAMENTALS
JSP FUNDAMENTALS JSP FUNDAMENTALS By: Hrishikesh Deshpande Introduction : JSP termed as Java Server Pages is a technology introduced by Sun Microsystems Inc. to develop the web application in more efficient way than Servlets. It has got many
 
Running JavaServer Faces Technology-Based Portlets on Sun Java System Portal Server 6 2005Q1
You can extend the framework based on JavaServer Faces technology and then run a JSR 168-compliant portlet on Sun Java System Portal Server 6. This article describes the setup procedures, offers sample code, and summarizes the known issues.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.