aspose file tools*
The moose likes Java in General and the fly likes file.isDirectory() is giving incorerct result when trying with temp. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "file.isDirectory() is giving incorerct result when trying with temp." Watch "file.isDirectory() is giving incorerct result when trying with temp." New topic
Author

file.isDirectory() is giving incorerct result when trying with temp.

Sharad Kharya
Ranch Hand

Joined: Oct 15, 2008
Posts: 68
my requirement is to check whether the path coming in response is a valid directory path or not.
complete code is

Here the output is false as expected.

But if is modified with then output is coming true.

Though no such temp directory is exists, but still its giving incorrect result.
Please let me know why it is giving such invalid output. So i can fix this high priority bug.


Thanks in advance
Sharad
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
Sharad:

Are you sure there is no temp directory under the root directory? Just from a first impression, I would look there, and not in your current directory.

John.
Daniel Jurado
Greenhorn

Joined: Apr 28, 2009
Posts: 8
Maybe /temp is a hidden directory. Double check.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file.isDirectory() is giving incorerct result when trying with temp.