Home Download Buy Blog Forum Support

Get all files in a project

Get all files in a project

Postby spadgos on Sat Feb 18, 2012 5:30 pm

Is there a built-in command to get a list of all the files in the current project?
spadgos
 
Posts: 121
Joined: Thu Oct 06, 2011 12:49 am

Re: Get all files in a project

Postby Cjkjvfnby on Mon Feb 20, 2012 11:32 am

spadgos wrote:Is there a built-in command to get a list of all the files in the current project?


use any:
os.walk
os.listdir
glob.glob
Cjkjvfnby
 
Posts: 20
Joined: Wed Feb 01, 2012 11:35 am

Re: Get all files in a project

Postby spadgos on Tue Feb 21, 2012 11:44 pm

so, nothing in the Sublime API then? Using the normal Python methods, I'd have to filter out the excluded files myself. Basically, I just want the exact list you get when you open the Ctrl+P 'open anything' palette.
spadgos
 
Posts: 121
Joined: Thu Oct 06, 2011 12:49 am

Re: Get all files in a project

Postby FMC on Fri Feb 24, 2012 7:46 am

I am looking for the same feature.

It seems like ST2 is caching the folders and their content somewhere. You can tell how quick it is when you CTRL+P or Find in files.

Is there any way of accessing this cache in the API?
FMC
 
Posts: 1
Joined: Fri Feb 24, 2012 7:44 am

Re: Get all files in a project

Postby sebm on Tue Apr 17, 2012 12:26 pm

FMC wrote:I am looking for the same feature.

It seems like ST2 is caching the folders and their content somewhere. You can tell how quick it is when you CTRL+P or Find in files.

Is there any way of accessing this cache in the API?


I'd love this feature too :)
sebm
 
Posts: 5
Joined: Sun Mar 11, 2012 4:52 pm


Return to Plugin Development

Who is online

Users browsing this forum: Google [Bot] and 8 guests