File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sharad Kharya
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 600
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe /temp is a hidden directory. Double check.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic