Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!w3g2000vbw.googlegroups.com!not-for-mail From: alelvb@inwind.it Newsgroups: comp.lang.java.programmer Subject: Re: A strange behaviour of a File property Date: Fri, 11 Nov 2011 09:28:59 -0800 (PST) Organization: http://groups.google.com Lines: 14 Message-ID: References: <5980efbc-9010-4145-b886-fe106c5ac2d5@c18g2000yqj.googlegroups.com> <2735801.801.1321025690138.JavaMail.geo-discussion-forums@prdy11> NNTP-Posting-Host: 94.85.244.129 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1321032658 10524 127.0.0.1 (11 Nov 2011 17:30:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 11 Nov 2011 17:30:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w3g2000vbw.googlegroups.com; posting-host=94.85.244.129; posting-account=B_zidgoAAABpkY0jx3yxjD1Ik8VnQHr7 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9850 > If you're asking the world of strangers to help, please do try to make it easy to read your code. > > Use spaces to indent, up to four per level. ok it'll be done, i'm sorry > What are your outputs in the scenario that "works" (and what does "works" mean?) and in the scenario that doesn't? the call to isDirectory() returns true only for the directories present in the "." directory, for every other path it returns always false, even when the file >is< a directory.