Skip to main content
Code Review

Questions tagged [file-structure]

A file structure is a way of organizing files in a fashion that allows them to be queried and/or updated efficiently. **Please do not use this tag to ask about project structure.**

Filter by
Sorted by
Tagged with
2 votes
1 answer
75 views

Ruby 'mkdir_reports'-script for creating folder-/file-structure automated

Initial situation: Each week a nested folder-/file-structure has to be created. Content is added to the files. Afterward the structure is copied to a shared-folder for long-time documentation. Example:...
1 vote
1 answer
151 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 ...
3 votes
2 answers
211 views

Add offset to all filenames

From all the files in a directory, the method shiftFilenamesOffset is to increment the numeric part (int) of the alphanumeric filename by offset each time, and ...
2 votes
2 answers
252 views

Duplicate a folder tree over a network in C#

I have been tasked in creating a method that would replicate a full directory tree to a remote server using C#. The problem there is that I can only create the folder or the file if it has a parent. I'...
3 votes
1 answer
106 views

Bash script to clone directory structure with renaming

I've written a script to aid in creating new watchfaces for the awesome AsteroidOS project. A watchface there typically consists of directory structure like this: ...
Edward's user avatar
  • 67.2k
2 votes
3 answers
337 views

Java logger (of doom!), updated

In a previous question, Java logger (of doom!), I had posted my own logger, written in Java. I have since taken the answers from that question and a few of my own things to update it. New code: ...
13 votes
7 answers
3k views

A binary 3D model format for a game

I've recently started working on my own game engine and I have been thinking about creating my own model format. Since text usually takes a long time to load and process I decided to make a binary ...
Leocat's user avatar
  • 135
8 votes
3 answers
588 views

Sinclair Spectrum TAP file dumper

The other day, I had occasion to want to look into an ancient piece of Z80 software written for a Sinclair Spectrum computer. Software for this machine was typically saved to audio tape, and today ...
1 vote
2 answers
106 views

Building a Building - Is the building clean?

I'm writing a small game and I use Kotlin for that. I want to model my buildings with the following class: ...
6 votes
1 answer
128 views

Centrepiece Class from a Warehouse Management Package

Overview I've just written a package in Python (which I've named sibstructures) whose purpose is to assist staff in managing a coldstore, which is a warehouse-...
4 votes
1 answer
278 views

Read JPEG dimensions properly

I need to extract the dimensions (width and height) of a jpeg file for inserting in an html document. According to the JPEG image compression FAQ, cautions against what's commonly out there, Some ...
Neil's user avatar
  • 1,112
6 votes
2 answers
4k views

Java program to detect the Java class File Format magic number, in a given file

Description: I wrote a Java program that checks whether the content of the given file begins with the Java class File Format magic number 0xCAFEBABE, in big-endian ...
user avatar
user204483
7 votes
1 answer
1k views

Parse a WAV file and export PCM data

I'm a newbie and I wrote code that gets a WAV file and exports a RAW (only PCM data) to *.raw file. But I am confused about the structure. The code is written as one procedure (LISP style) and there ...
4 votes
2 answers
250 views

Parsing Bitcoin binary data file with Python

The script parses Bitcoin database (blkXXXXX.dat) files directly from raw binary to txt human readable view. And I think about how to encrease the speed of processing. Can anyone suggest how to ...
5 votes
3 answers
177 views

Serial copying from disk images to folder in Bash

This is a Bash script that copies files stored inside disk images to a directory, using a defined structure provided via a JSON file. I've included the external programs it requires and the test I ...

15 30 50 per page
1
2 3 4

AltStyle によって変換されたページ (->オリジナル) /