All Questions
Tagged with file-system python-3.x
75 questions
5
votes
4
answers
2k
views
A function that opens a CSV file
I'm working on a project that requires me to open CSV files. It must check that the file is open and then return it to main. I've written a function to do so and would like to know how it looks, if ...
1
vote
1
answer
128
views
Clear the temp folder with Python script
I am addicted to cleaning the %temp% folder, so I went ahead and tried with pyautogui at first by making it click ...
1
vote
2
answers
223
views
PDF invoices from user input
Firstly the goal of this code is a little more complex than in this post and the other invoice questions are C#
Is there anything that just pops out as immeadiately unpythonic/wrong ?
I have a few ...
1
vote
1
answer
201
views
Version 2 of my Python Password Manager
I am still just starting out with python and just finished learning about classes, with no further understanding on many python modules. With this in mind, this is one of the biggest/hardest things I ...
15
votes
4
answers
2k
views
Python tool to organize downloaded media files
I'm making a file management project that I eventually want to be automated later in the future (once I learn how to). What it does is take files from my download folder and move those files to the ...
4
votes
2
answers
380
views
Attempting an OOP approach for PDF Paranoia - Automate the Boring Stuff CH 15
This exercise is called PDF Paranoia and it comes from CH 15 of the book Automate the Boring Stuff With Python - second edition. There are two parts to the exercise, which I've separated into two ...
3
votes
1
answer
1k
views
Faster way to find duplicates in a directory using Python
This is my first Python project in file management.
It's a finished and passed exercise from JetBrains (Duplicate File Handler).
The main job is reading a full path to folder from argument, list files ...
4
votes
0
answers
104
views
Determine when a file is no longer being changed by hashing
I have a requirement to essentially scan a filesystem on any kind of filesystem and move a resource whenever it is ready. To do this I have the following code
...
4
votes
1
answer
137
views
Mount point API for Linux systems
I have a use case where I need to check, whether / is mounted read-only.
Here's the module where I implemented this check:
...
3
votes
1
answer
558
views
Automate the Boring Stuff CH 10 - filling in the gaps
This exercise comes from Automate the Boring Stuff CH 10 - second edition. The exercise is called "filling in the gaps," and the instructions are as follows:
Write a program that finds all ...
16
votes
6
answers
5k
views
A file class for Python
This is the entire code segment. All the functions for file operations are working perfectly. I just need a professional to help me clarify that am following good standards, documentation, etc., ...
2
votes
2
answers
210
views
Get the total file size from a directory for each date using map and pairs
I'm working on a project where the file name consists of actual dates but the data for the dates are split into multiple files.
Developed the following program to count the number of files for each ...
1
vote
1
answer
109
views
Extract matrices from hierarchical file structure
I have a set of JSON files stored in a folder;
the folder structure is as follows:
Main_folder
----F1
-----I1
------X.json
-----I2
-------X.json
.
.
.
.
.
.
In all,...
2
votes
1
answer
1k
views
Read file from current path in Python
I had to write a custom function to load a yaml file from the current working directory. The function itself works and my intention was to write it in a pure fashion but my senior colleague told me ...
2
votes
2
answers
98
views
Send an array of files and return the first one that exists
I have a little project, chuy, which is basically a copy of Make.
By request of users I have added support for toml configuration, since originally it only accepted ...