Skip to content

Instantly share code, notes, and snippets.

@orangexception
Created February 18, 2012 01:47
Show Gist options
  • Save orangexception/1856814 to your computer and use it in GitHub Desktop.
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...
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