Created
February 18, 2012 01:47
-
-
Save orangexception/1856814 to your computer and use it in GitHub Desktop.
The dumb things I do because DirectoryList doesn't have a proper filter...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sPath= ExpandPath( "/" ); | |
var qDirectoryList= DirectoryList( sPath , | |
true , | |
"query" ); | |
var qoqDirectoryList= new Query(); | |
qoqDirectoryList.setAttributes( qDirectoryList= qDirectoryList ); | |
qoqDirectoryList.setDBType( "query" ); | |
qoqDirectoryList.setSQL( " select * | |
from qDirectoryList | |
where type= 'Dir'" ); | |
qoqDirectoryList= qoqDirectoryList | |
.execute() | |
.getResult(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment