Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] OpenRawFolder seems to have problems either with root dirs or with hidden directories

Author
Message
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 1st Feb 2019 21:45 Edited at: 1st Feb 2019 21:48
Title pretty much explains the problem; when i use following code with " C:/ " , it puts out like 4 entries when there are way more , i suppose that a hidden folder somehow messes up the reading process.
When i use the same code with "C:/program_x/" it puts out the right amount of folders ; there are no hidden folders.

The author of this post has marked a post as an answer.

Go to answer

puzzler2018
User Banned
Posted: 1st Feb 2019 21:49
A windows path length is 255 - anymore than that it occludes and says narrr - is that it?

Could there be potentially more than 255 characters in your folder structures?
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 1st Feb 2019 21:56
This post has been marked by the post author as the answer.
I suppose the command handles either system folders or hidden folders incorrectly. Have you tried it on a directory with hidden folders or system folders ?
Preben
AGK Studio Developer
19
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 2nd Feb 2019 10:40 Edited at: 2nd Feb 2019 10:40
Your checking how many files (GetRawFolderNumFiles) you have not folders , use:

GetRawFolderNumFolders

So you have 4 files on your root drive

Both commands works fine here.
Subscribe and checkout great AppGameKit video's here: Videos click here
Latest GameGuru Loader news: News click here
Get GameGuru Loader PBR version here: Steam click here
best regards Preben Eriksen,
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 2nd Feb 2019 11:34
geeesh... what a horrible blunder for a master of my caliber - thanks for pointing it out !

Login to post a reply

Server time is: 2024-03-28 20:51:42
Your offset time is: 2024-03-28 20:51:42