I printed files using os.listdir() and found the files inside the folder i am looking for. I'm now looking for user input to know which files to look in. The files are in years and month and I'm not sure how?
Finding file based on user input?
76 Views Asked by Magnmi At
2
There are 2 best solutions below
Related Questions in PYTHON-3.X
- Update a text file with ( new words+ \n ) after the words is appended into a list
- Kivy - Create new widget and set its position and size
- TypeError: encoding or errors without a string argument
- How to print varible name in python
- PyQt, Python 3: Lambda slot assigning signal argument to a variable?
- How to write data to stdin of the first process in a Python shell pipeline?
- pygame.draw.circle, still draws a square
- Duplicate Frames Created When Calling a Function in a Tkinter Application
- Python TypeError: can only concatenate tuple (not "int") to tuple
- recursively editing member variable: All instances have same value
- missing 1 required positional argument: 'key'
- How do I fix this sorting error?
- Dictionary values missing
- Why does opening a file in two different encodings work as expected?
- Binary bit flip generator in python
Related Questions in FILE
- Saving FileSystemInfo Array to File
- C programming: Create and write 2D array of files as function
- How can I change a specific line in a file with node js?
- Grabbing Edits from two strings
- In Android, would it be possible to open a file in the 'values' folder and to read its content?
- Using paths bonded to a XCode project to be shared
- Why am i getting these invalid characters before my file data?
- Optimum directory structure for large number of files to display on a page
- C Reading binary file with fread()
- Renaming a File() object in JavaScript
- How to write the current time to a new line of a .txt file on php execution
- introduce c++ into html
- How can I create a simple text file on a windows phone (8.1) that can be accessed trough USB cable?
- Pop-up and download zip file in ASP.NET
- Using access() in C
Related Questions in DIRECTORY
- Optimum directory structure for large number of files to display on a page
- install a R package from directory
- Are stringified MongoDB ObjectID's safe as folder names?
- Generate TCPDF output to a shared drive folder
- Get number of files in various subdirectories relative to the current page - ColdFusion
- Ruby on Windows XP: How to change directory of SSL certificates
- Google Drive API VB.NET Parent Folder of a Folder
- Count files in a directory while excluding others by directory and subdirectories using PHP
- Media files end up in in a pycharm subdirectory when uploading
- Remove part of filename of files that are in different folders
- Group items based on x number characters of basename
- Android Studio missing drawable Folder
- Updating folder structure with Mac Terminal
- Matlab error in file path for a sound
- Rails: Include Javascript_include_tag outside default folders
Related Questions in USER-INPUT
- Does closing Scanner affect performance
- Handling RuntimeExceptions in certain circumstances valid?
- Standard way of retrieving PHP Form Inputs
- java print a triangle
- UITextField Caret stops moving around when too large
- Encription Output beautifier
- Java to C++ syntax
- Advancing text in a text file using user input
- The logic is always failing
- Take each character in a string and convert it to Hex c++?
- Batch Getting & Displaying User Input
- Running Python clicker based on keylogger inputs on the background in Windows
- Open a file from user input in python 2.7
- jsPlumb - adding a string value to an edge
- C++: getline is beings skipped for user input
Related Questions in WEB-FOLDERS
- How can I enumerate network shares and web folders in C#?
- Prevent direct access to folder file by typing URL
- rewrite rule for two folders
- How to add cpd4j 6.1.0 API to Spring Boot application
- HTTPModule on IIS 6 to execute on Web Folder requests?
- Block direct access to subfolders with .htaccess or other methods
- Securing a folder in ASP.NET web directory
- how to create webshare in a asp.net web application?
- Access 2007 - Why won't Access work on workspaces/web folders?
- Is it possible to enable Web folder with it's navigation in Spring Boot / Web MVC similarly what we see when opening local folder in browser?
- How do I enumerate web folders in C# that are not mapped to network drives (like "net use")
- Displaying error description in WebDAV response
- Can i upload my website folder like this (nested folders inside main folder)?
- Finding file based on user input?
- How to download a web directory when authentication is required?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Are you expecting a year and month as input from the user? In that case you could parse the input string, then use some kind of regex matching to find the corresponding file.