News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

filesys.dirIn question

Started by gurangax, October 25, 2008, 04:44:02 AM

Previous topic - Next topic

gurangax

hi
have anyone tried the filesys.dirIn function? Is it buggy? I tried it using the sample given in the hla library file but seems not to work like I want it to. if I put

filesys.dirIn(somePath);

the resulting string is not a dir inside somePath but rather the files inside root directory c: or the current working directory. anyone knows why?
many thanks

Sevag.K

Quote from: gurangax on October 25, 2008, 04:44:02 AM
hi
have anyone tried the filesys.dirIn function? Is it buggy? I tried it using the sample given in the hla library file but seems not to work like I want it to. if I put

filesys.dirIn(somePath);

the resulting string is not a dir inside somePath but rather the files inside root directory c: or the current working directory. anyone knows why?
many thanks

It is buggy.  Until it's fixed, you have two options:

1. manually append a path separator ('\' for windows, '/' for linux) to 'somePath' and use that string
2. use filesys.dirInCwd() but you have to change directory to 'somePath' first.


gurangax

ok. I already worked with filesys.dirInCwd and it works perfectly like I want it to. I'll try appending the "\" latter. Many thanks