Hi,
With this first command
aDir := DIRECTORYRECURSE( "." )
I do not load into aDir array files without extensions
in this way instead
aDir := DIRECTORYRECURSE( "*" )
all files are loaded
Is it normal?
best regards
marco
info@marcoboschi.it
Hi,
With this first command
aDir := DIRECTORYRECURSE( "." )
I do not load into aDir array files without extensions
in this way instead
aDir := DIRECTORYRECURSE( "*" )
all files are loaded
Is it normal?
best regards
marco
#include "Directry.ch"
FUNCTION MAIN()
LOCAL aDir := DIRECTORYRECURSE( "*.*" )
LOCAL i
FOR i = 1 TO LEN( aDir )
? aDir[ i, F_NAME ]
NEXT
INKEY( 0 )
RETURN NILMarco,
can confirm this behaviour and I think it's logical, because the pattern "." is not suitable for files without extensions in opposite to "*" ![]()
frose,
please try these two different commands from any folder in any volume
DIR . /S
DIR * /S
and count the files listed
note that the numbers of files listed are the same.
In a program these two different ways to call the same function
aDir := DIRECTORYRECURSE( "." )
aDir := DIRECTORYRECURSE( "*" )
return different array if are present files without extension
Something is not working and
EMG confirms that in the latest version this problem has been fixed
bye
Sorry, I was wrong. I didn't have any file without extension. ![]()
EMG
Marco,
yes, you are right. The default pattern is "." for all available files (and directories), also for files with no extension!
It works for Directory() but for DirectoryRecurse() the files with no extension are NOT included!
MarcoBoschi wrote:frose,
please try these two different commands from any folder in any volume
DIR *.* /S
DIR * /S
and count the files listed
note that the numbers of files listed are the same.
In a program these two different ways to call the same function
aDir := DIRECTORYRECURSE( "*.*" )
aDir := DIRECTORYRECURSE( "*" )
return different array if are present files without extension
Something is not working and
EMG confirms that in the latest version this problem has been fixed
bye
Hi Andy,
has been corrected ?
Best regards,
Felix