Skip to main content

Questions tagged [file-system]

Use this tag for reviews of code that performs file system operations, such as creating, deleting, renaming, moving, copying, reading, and writing files.

3 votes
5 answers
636 views

This code below aim to listing all folders in one directory and get size of each in byte. It uses only pathlib module for that. ...
wilfrid julien's user avatar
7 votes
4 answers
656 views

I'm a hobby coder at best. I know enough to make helpful programs to assist me with day to day life and work (mostly with PHP/JS, some C#). I'm wanting to learn more about good coding practices. I ...
Aethar's user avatar
  • 71
5 votes
4 answers
2k views

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 ...
JackInDaBeanSock's user avatar
2 votes
1 answer
140 views

Repo The complete program: GitHub repository How it works After you have cloned the above repository, change directory inside it and type make in order to compile ...
coderodde's user avatar
  • 32.3k
8 votes
1 answer
619 views

Recently I am working on implementing a shared-memory based IPC message queue in C programming language on Linux system. A few design choices I've made include The queue will have only 1 producer, ...
Yukun Jiang's user avatar
5 votes
4 answers
303 views

To compare ergonomics and performance of some languages for my hobby projects, I have written a simple lines of code counter in Swift, Go, Rust and Python. It scans a given directory tree for source ...
user avatar
5 votes
2 answers
1k views

(See the GitHub repository for a Visual Studio (2022) solution/projects.) Description This malware does nothing more than install/uninstall ...
coderodde's user avatar
  • 32.3k
7 votes
4 answers
2k views

Intro This time I was in the mood for the low level stuff. The entire repository is in GitHub. It includes the installer, the actual malware program, and the uninstaller that removes it completely ...
coderodde's user avatar
  • 32.3k
5 votes
1 answer
140 views

This is my first Rust project (I'm primarily a C guy). I want to know if my code is properly idiomatic (Rusty?). Also, are there any inefficiencies? The code defines an iterator (...
Daniel Walker's user avatar
12 votes
3 answers
1k views

I have just implemented this while getting acquainted with the std::filesystem library. On input from console, the program accepts two arguments: ...
Giogre's user avatar
  • 515
9 votes
3 answers
630 views

Similar to the class for the RAR file, now a class to extract and store the hashes from SFV files. Though this was considerably easier, there has been some code reorganisation: there is now an ...
viuser's user avatar
  • 629
7 votes
3 answers
319 views

The code works, but I could use help testing it more comprehensively and double-checking that everything I'm doing makes sense, and that all the options can coexist with each other. I'm running into ...
Sinjai's user avatar
  • 317
11 votes
6 answers
1k views

I have created a cross-platform CLI tool to quickly retrieve file size and present it to the user in different units of data. The whole program is written in C and for Windows Win32 API is used to ...
Darth-CodeX's user avatar
9 votes
3 answers
1k views

The first lines of the rarpath module (see here for context, the rest is not used here): ...
viuser's user avatar
  • 629
5 votes
2 answers
231 views

This simple task of sorting a list of related RAR files of a split archive turned out to be more cumbersome than expected, since there are two versions of the RAR naming scheme, v3 and v5. v3 is like ...
viuser's user avatar
  • 629

15 30 50 per page
1
2 3 4 5
50