Menu

#2 dirs and files

open
nobody
None
5
2007-07-11
2007-07-11
Anonymous
No

At the page that shows the drive's contents It can't see any dirs, only files at root dir. Only in Windows ME is observed it XP and W2000 are not affected.
The answer is in file files.c:

int esDir(const char * file)
105 {
106 struct stat sb;
107
108 if (stat(file, &sb)!=0){
109 logmsg("NO se pudo hacer stat en -%s-\n",file);
110 return 0 ;
111 }
112 else{
113 if (sb.st_mode & _S_IFDIR) return 1;
114 else return 0 ;
115 }
116 }
Does the function stat work in W ME?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.