Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8507693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:56:31+00:00 2026-06-11T02:56:31+00:00

At first I want to say I’m a total beginner in Python so this

  • 0

At first I want to say I’m a total beginner in Python so this question might be really stupid. I’m currently trying to learn something new and am developing a plugin for SublimeText2.

Can I get a list of files and folders in some directory in Packages folder of SublimeText2, what I basically want is a simple list. If yes, how can this be done?

I’ve searched the API for something like that, but the only thing that there is are commands that manipulate the currently open folders (the ones in the sidebar).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:56:33+00:00Added an answer on June 11, 2026 at 2:56 am

    Ok, this was really stupid, I won’t close the question as I think it may help others to start here. The reason I didn’t find anything in SublimeText2 API is because this is the default Python functionality from the os library.

    import sublime, sublime_plugin, os
    
    #...
    
    print(os.listdir(sublime.packages_path()))
    

    Method sublime.packages_path() returns the path to packages folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

first i want to say that this site has been a really big help
First of all, I want to say sorry for this very big question, but
At first I want to say: I couldn't find a support forum for this
First thing i want to say that it's not an easy question to explain,
First of all i want to say that I'm still a beginner in ASP.NET
First I want to say that I'm really new to neural networks and I
first I want to say that I hope this doesn't look like I am
First off I want to say that I wasn't really sure where to post
I first want to say I'm a beginner with PHP and my code is
First I want to say thanks to everyone that reads this. Stackoverflow is an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.