All Questions
Tagged with python file-system
234
questions
2
votes
2
answers
66
views
Implementing load and save operations for a text editor (proof of concept)
I have a text editor in C does not give much thought to losing data whilst overwriting the original file to save new progress. To circumvent this problem, and make the process robust, I ended up with ...
1
vote
1
answer
68
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 ...
4
votes
2
answers
286
views
Simple size difference measuring tool
Simple tool I wrote in an hour or two (I'm not very fast, but I eventually get there - also for the "spending 6 hours to save 6 seconds" meme).
Would've written this in shellscript given ...
5
votes
0
answers
193
views
Resolve an entire NTFS Master File Table's worth of File Records to Absolute Paths
This is related to my previous question.
This is it, the full working code that resolves all file record segments in a Master File Table to absolute file paths. It is completely working and seems to ...
1
vote
1
answer
106
views
Looking for help simplifying a general purpose compression function
The following is a general purpose file compression function with the following features:
It can take either a single file or directory as the source input
It defaults to the source directory when to ...
2
votes
1
answer
242
views
NTFS Master File Table Parser
I have written a Python program to parse the Master File Table located by //?/X:/$MFT.
Of course trying to open it normally will result in ...
2
votes
2
answers
199
views
Python script to categorize download folder based on files
My Download habit is notorious and my download folder end up piled up with random downloads, I created a python script to maintain my download folder in windows
upon running the script it moves files ...
1
vote
2
answers
182
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
65
views
Class handling file conversion and data manipulation archiving [h5py]
I am a physics PhD student who co-developped a python package for file conversion of standard file format used in Scanning Probe Microscopy (SPM) and archiving of data manipulation for tracability. If ...
1
vote
1
answer
264
views
Collecting hashes of all files in a folder and its subfolders into a dictionary in Python
What I am doing here is iterating through all the files in the parentFolder and its subfolders collecting all the hashes of all the files and putting them into a ...
6
votes
1
answer
759
views
Python File Transfer Script
I'm still pretty new at Python and working on a small database program, where at the start of the program new files are imported from another folder (approx. 2000), and older files are backed up. ...
1
vote
1
answer
249
views
Delete files with specific filename pattern in directory with all extension using python
Preamble
The first following code explains the context.
...
4
votes
2
answers
2k
views
Clean up directories and files when a unit test fails
While running unit tests (most of them integration tests) with Python I create some directories. They need to be deleted after the test or when the test fails. The execution of the cleanup code need ...
5
votes
2
answers
595
views
Automate the Boring Stuff Chapter 10 - Selective Copy by file extension
The project outline:
Write a program that walks through a folder tree and searches for
files with a certain file extension (such as .pdf or .jpg). Copy these
files from whatever location they are in ...
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 ...