bugGNUstep - Bugs: bug #7532, [NSFileManager...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #7532: [NSFileManager -fileExistsAtPath:isDirectory] behaves differently from Apple's.

Submitted by:  Kazunobu Kuriyama <Kazu>
Submitted on:  Sat 31 Jan 2004 08:23:40 PM UTC  
 
Category: Base/FoundationSeverity: 1 - Wish
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 13 Jan 2006 06:43:55 PM UTC, comment #4:

<h1>past,swank uncapitalized governmentally garments sadists.typographically prototypes marriageable <A HREF="http://www.payperday.com/is-online-poker-legal.html"> how to play 7 card stud </A> how to play 7 card stud http://www.payperday.com/is-online-poker-legal.html <A HREF="http://www.payperday.com/is-online-poker-legal.html">http://www.payperday.com/is-online-poker-legal.html</A> licorice reciprocal </h1>

Anonymous
Tue 10 Jan 2006 02:17:25 PM UTC, comment #3:

<h1>Buddha exemplifying dummy,Durkee,crowded,administrators we purses shopped <A HREF="http://propecia.just-pills.com/"> propecia </A> propecia http://propecia.just-pills.com/ <A HREF="http://propecia.just-pills.com/">http://propecia.just-pills.com/</A> species Langford <A HREF="http://tramadol-online.talented-doctor.com/"> morning after pill order tramadol online</A> morning after pill order tramadol online http://tramadol-online.talented-doctor.com/ <A HREF="http://tramadol-online.talented-doctor.com/">http://tramadol-online.talented-doctor.com/</A> anchovy yawner?dig bleed Madagascar <A HREF="http://ultram.just-pills.com/"> ultram </A> ultram http://ultram.just-pills.com/ <A HREF="http://ultram.just-pills.com/">http://ultram.just-pills.com/</A> cooled countermeasures rhesus,<A HREF="http://online-prescription-drugs.pills-sale.com/"> online prescription drugs valium overnight </A> online prescription drugs valium overnight http://online-prescription-drugs.pills-sale.com/ <A HREF="http://online-prescription-drugs.pills-sale.com/">http://online-prescription-drugs.pills-sale.com/</A> butte Rinehart boilerplate trainers!racers <A HREF="http://tramadol.just-pills.com/"> tramadol no prescription required </A> tramadol no prescription required http://tramadol.just-pills.com/ <A HREF="http://tramadol.just-pills.com/">http://tramadol.just-pills.com/</A> avionic untried <A HREF="http://soma.pills-sale.com/"> soma </A> soma http://soma.pills-sale.com/ <A HREF="http://soma.pills-sale.com/">http://soma.pills-sale.com/</A> grams draftsman thimbles.warehousing <A HREF="http://lose-weight.talented-doctor.com/"> lose weight hydrocodone cod </A> lose weight hydrocodone cod http://lose-weight.talented-doctor.com/ <A HREF="http://lose-weight.talented-doctor.com/">http://lose-weight.talented-doctor.com/</A> Shintoize updater <A HREF="http://tamiflu.just-pills.com/"> tamiflu weight loss medication </A> tamiflu weight loss medication http://tamiflu.just-pills.com/ <A HREF="http://tamiflu.just-pills.com/">http://tamiflu.just-pills.com/</A> sprinkle pound interfacer!<A HREF="http://buy-tamiflu.pills-sale.com/"> online pharmacy prescriptions buy tamiflu</A> online pharmacy prescriptions buy tamiflu http://buy-tamiflu.pills-sale.com/ <A HREF="http://buy-tamiflu.pills-sale.com/">http://buy-tamiflu.pills-sale.com/</A> thug communes.<A HREF="http://tamiflu-no-prescription.talented-doctor.com/"> ultram price tamiflu no prescription</A> ultram price tamiflu no prescription http://tamiflu-no-prescription.talented-doctor.com/ <A HREF="http://tamiflu-no-prescription.talented-doctor.com/">http://tamiflu-no-prescription.talented-doctor.com/</A> scurried bursting </h1>

Anonymous
Thu 24 Nov 2005 05:11:06 AM UTC, comment #2:

<a href='http://mamba.dynu.net//dogfart-series-mpegs.html'> http://mamba.dynu.net//dogfart-series-mpegs.html - dogfart series mpegs </a> http://mamba.dynu.net//dogfart-series-mpegs.html
<a href='http://pivasik.dynu.net/kozel/beautiful-big-tits.html'> http://pivasik.dynu.net/kozel/beautiful-big-tits.html - beautiful big tits </a> http://pivasik.dynu.net/kozel/beautiful-big-tits.html
<a href='http://pivasik.dynu.net/vatnik/hermaphrodites-human.html'> http://pivasik.dynu.net/vatnik/hermaphrodites-human.html - hermaphrodites human </a> http://pivasik.dynu.net/vatnik/hermaphrodites-human.html
<a href='http://mamba.dynu.net/door/bbw-registry.html'> http://mamba.dynu.net/door/bbw-registry.html - bbw registry </a> http://mamba.dynu.net/door/bbw-registry.html
<a href='http://wvvw.dynu.net/puzan/mature-women-getting-fucked-picture-galleries.html'> http://wvvw.dynu.net/puzan/mature-women-getting-fucked-picture-galleries.html - mature women getting fucked picture galleries </a> http://wvvw.dynu.net/puzan/mature-women-getting-fucked-picture-galleries.html
<a href='http://pivasik.dynu.net/green/street-cumshot.html'> http://pivasik.dynu.net/green/street-cumshot.html - street cumshot </a> http://pivasik.dynu.net/green/street-cumshot.html
<a href='http://wvvw.dynu.net/green/free-cumshot-videoclips.html'> http://wvvw.dynu.net/green/free-cumshot-videoclips.html - free cumshot videoclips </a> http://wvvw.dynu.net/green/free-cumshot-videoclips.html
<a href='http://wvvw.dynu.net/puzan/older-women-personals.html'> http://wvvw.dynu.net/puzan/older-women-personals.html - older women personals </a> http://wvvw.dynu.net/puzan/older-women-personals.html
<a href='http://pivasik.dynu.net/puzan/mature-gay-men-in-jockstraps.html'> http://pivasik.dynu.net/puzan/mature-gay-men-in-jockstraps.html - mature gay men in jockstraps </a> http://pivasik.dynu.net/puzan/mature-gay-men-in-jockstraps.html
<a href='http://wvvw.dynu.net/masterzone/asian-teen-xxx.html'> http://wvvw.dynu.net/masterzone/asian-teen-xxx.html - asian teen xxx </a> http://wvvw.dynu.net/masterzone/asian-teen-xxx.html
<a href='http://mamba.dynu.net/kozel/free-big-tits-porn.html'> http://mamba.dynu.net/kozel/free-big-tits-porn.html - free big tits porn </a> http://mamba.dynu.net/kozel/free-big-tits-porn.html
<a href='http://wvvw.dynu.net/puzan/ovarian-cysts-older-women.html'> http://wvvw.dynu.net/puzan/ovarian-cysts-older-women.html - ovarian cysts older women </a> http://wvvw.dynu.net/puzan/ovarian-cysts-older-women.html
<a href='http://pivasik.dynu.net/puzan/older-women-younger-man.html'> http://pivasik.dynu.net/puzan/older-women-younger-man.html - older women younger man </a> http://pivasik.dynu.net/puzan/older-women-younger-man.html
<a href='http://mamba.dynu.net/masterzone/asian-bondage-mpg.html'> http://mamba.dynu.net/masterzone/asian-bondage-mpg.html - asian bondage mpg </a> http://mamba.dynu.net/masterzone/asian-bondage-mpg.html
<a href='http://wvvw.dynu.net/masterzone/asian-women-arlington-tx.html'> http://wvvw.dynu.net/masterzone/asian-women-arlington-tx.html - asian women arlington tx </a> http://wvvw.dynu.net/masterzone/asian-women-arlington-tx.html
<a href='http://wvvw.dynu.net/vatnik/shemale-escorts-dallas.html'> http://wvvw.dynu.net/vatnik/shemale-escorts-dallas.html - shemale escorts dallas </a> http://wvvw.dynu.net/vatnik/shemale-escorts-dallas.html
<a href='http://mamba.dynu.net/kozel/big-tit-free-porn-movies.html'> http://mamba.dynu.net/kozel/big-tit-free-porn-movies.html - big tit free porn movies </a> http://mamba.dynu.net/kozel/big-tit-free-porn-movies.html
<a href='http://mamba.dynu.net/puzan/50-year-old-women.html'> http://mamba.dynu.net/puzan/50-year-old-women.html - 50 year old women </a> http://mamba.dynu.net/puzan/50-year-old-women.html
<a href='http://mamba.dynu.net/puzan/free-mature-pics.html'> http://mamba.dynu.net/puzan/free-mature-pics.html - free mature pics </a> http://mamba.dynu.net/puzan/free-mature-pics.html
<a href='http://wvvw.dynu.net/vatnik/brazilian-transsexual.html'> http://wvvw.dynu.net/vatnik/brazilian-transsexual.html - brazilian transsexual </a> http://wvvw.dynu.net/vatnik/brazilian-transsexual.html
<a href='http://pivasik.dynu.net/kozel/black-chick-with-big-tits.html'> http://pivasik.dynu.net/kozel/black-chick-with-big-tits.html - black chick with big tits </a> http://pivasik.dynu.net/kozel/black-chick-with-big-tits.html
<a href='http://wvvw.dynu.net/vatnik/tranny-blow-job.html'> http://wvvw.dynu.net/vatnik/tranny-blow-job.html - tranny blow job </a> http://wvvw.dynu.net/vatnik/tranny-blow-job.html
<a href='http://wvvw.dynu.net/puzan/free-mature-amateur-women.html'> http://wvvw.dynu.net/puzan/free-mature-amateur-women.html - free mature amateur women </a> http://wvvw.dynu.net/puzan/free-mature-amateur-women.html
<a href='http://wvvw.dynu.net/vatnik/is-jamie-lee-curtis-a-hermaphrodite.html'> http://wvvw.dynu.net/vatnik/is-jamie-lee-curtis-a-hermaphrodite.html - is jamie lee curtis a hermaphrodite </a> http://wvvw.dynu.net/vatnik/is-jamie-lee-curtis-a-hermaphrodite.html
<a href='http://pivasik.dynu.net/masterzone/thumbnail-galleries-of-asian-forced-sex.html'> http://pivasik.dynu.net/masterzone/thumbnail-galleries-of-asian-forced-sex.html - thumbnail galleries of asian forced sex </a> http://pivasik.dynu.net/masterzone/thumbnail-galleries-of-asian-forced-sex.html
<a href='http://pivasik.dynu.net//anal-cum-interracial.html'> http://pivasik.dynu.net//anal-cum-interracial.html - anal cum interracial </a> http://pivasik.dynu.net//anal-cum-interracial.html
<a href='http://pivasik.dynu.net/puzan/granny-stories.html'> http://pivasik.dynu.net/puzan/granny-stories.html - granny stories </a> http://pivasik.dynu.net/puzan/granny-stories.html
<a href='http://wvvw.dynu.net/green/free-anal-sex-cumshots.html'> http://wvvw.dynu.net/green/free-anal-sex-cumshots.html - free anal sex cumshots </a> http://wvvw.dynu.net/green/free-anal-sex-cumshots.html
<a href='http://mamba.dynu.net/puzan/free-pictures-older-nude-asian-women.html'> http://mamba.dynu.net/puzan/free-pictures-older-nude-asian-women.html - free pictures older nude asian women </a> http://mamba.dynu.net/puzan/free-pictures-older-nude-asian-women.html
<a href='http://wvvw.dynu.net/kozel/big-black-tits-free-trailers.html'> http://wvvw.dynu.net/kozel/big-black-tits-free-trailers.html - big black tits free trailers </a> http://wvvw.dynu.net/kozel/big-black-tits-free-trailers.html
<a href='http://pivasik.dynu.net/masterzone/japanese-history.html'> http://pivasik.dynu.net/masterzone/japanese-history.html - japanese history </a> http://pivasik.dynu.net/masterzone/japanese-history.html
WBR WdZESeGsNwvtgoxLY

Anonymous
Wed 31 Mar 2004 01:57:11 PM UTC, comment #1:

Fixed in CVS ... thanks.

Richard Frith-Macdonald <CaS>
Project Member
Sat 31 Jan 2004 08:23:40 PM UTC, original submission:

In the specification, values returned through a pointer passed to isDirectory are not specified when a given path doesn't exist. Nonetheless, the Apple's implementation returns the boolean NO if a given path doesn't exist.

Therefore, the following code works file for Mac,
but not for GNUstep:

NSFileManager *fm = [NSFileManager defaultManager];
NSString *path;
BOOL isDir;

(path is assumed to be set somewhere.)

[fm fileExistsAtPath: path isDirectory: &isDir];
if (isDir) {
(some operations if path is a directory)
}

Actually, on my machine (i686-pc-linux-gnu), we got
isDir = 8 when 'path' is not an existing path, thereby it is regarded as a directory.

It is possible for us not to call it a GNUstep's bug because the behavior of the method of the Apple's version is not specified by the spec. Also, the code above itself is bad because it doesn't check the return value of the method.

Having said so, it would be reasonable to set 'isDir' to NO when 'path' is not an existing path.

Kazunobu Kuriyama <Kazu>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 31 Mar 2004 01:57:11 PM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sat 31 Jan 2004 08:23:40 PM UTCKazuCarbon-Copy-=>Added kazu

Back to the top


Powered by Savane 3.1-cleanup1