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 / How to determine if this is a File or Folder?

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 19th Feb 2016 07:02 Edited at: 19th Feb 2016 07:06
Hello everybody.

If we use GetFIrstFile() , how do we know if that 'thing' is a file or folder?
How to differentiate them?

What command do we use?


Because in my program, if it's a folder, I would like to 'explore' it.
If it's a 'file', then I would leave it alone.
Scary Little Rabbit
15
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 19th Feb 2016 07:06
I suppose you may be sure it should be file name returned when you use this command. to get folders use getFirstFolder() and getNextFolder().
error #1:
'too many stars, too many stares. disembody.'
WIP: MIND!! free fonts for your AGKs
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 19th Feb 2016 07:09 Edited at: 19th Feb 2016 07:09
What the

How did I miss that
I'm sure I'm aware of that command before

Well thats what I get for being an idiot and not documenting my work plans

Thanks a million my good man!
Scary Little Rabbit
15
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 19th Feb 2016 09:52
no problem.
error #1:
'too many stars, too many stares. disembody.'
WIP: MIND!! free fonts for your AGKs

Login to post a reply

Server time is: 2024-09-29 11:31:23
Your offset time is: 2024-09-29 11:31:23