import os
import glob
path="c:\\"
extension = 'csv'
os.chdir(path)
result = glob.glob('*.{}'.format(extension))
print(result)
More Related Contents:
- How do I create a python code that distinguishes between the capital of a state and the state that the capital has?
- Writing a Python list of lists to a csv file
- Reading a huge .csv file
- Directory-tree listing in Python
- How to write to a CSV line by line?
- FileNotFoundError: [Errno 2] No such file or directory [duplicate]
- Python convert csv to xlsx
- How to read one single line of csv data in Python?
- How can I extract the folder path from file path in Python?
- Determining Whether a Directory is Writeable
- Read random lines from huge CSV file
- Creating files and directories via Python
- How can I safely create a nested directory?
- Is explicitly closing files important?
- Iterating on a file doesn’t work the second time
- Python out of memory on large CSV file (numpy)
- Writing a dictionary to a csv file with one line for every ‘key: value’
- check what files are open in Python
- How to convert a file to utf-8 in Python?
- Read from a log file as it’s being written using python
- How do I write data into CSV format as string (not file)?
- How to write UTF-8 in a CSV file
- Compare two files report difference in python
- How to transpose a dataset in a csv file?
- Python 2.7: Print to File
- How to read a CSV file from a URL with Python?
- Can you upload to S3 using a stream rather than a local file?
- Convert percent string to float in pandas read_csv
- How to upload a CSV file in FastAPI and convert it into a Pandas Dataframe?
- Deleting folders in python recursively