Skip to content

πŸ“„ A small windows utility that generates files-names list from YAML files within a directory

License

Notifications You must be signed in to change notification settings

simple-works/filenames-lister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Filenames Lister

Plarform Windows C# 4.0 .NET Framework 4.0

Filenames Lister is a small Windows utility that generates a filenames list from all the files within a directory. The output list is presented as a YAML file.

screenshot

ℹ️ What it does ?

  • It takes as input a directory and Search it for files including its sub-directories .
  • Makes a YAML file containing a list of the safe file-names found in the input directory.
  • If a file is within a sub-directory of the input directory it will be listed with the sub-directory name.

πŸ’‘ Example

πŸ“ Source Folder Structure:

πŸ“‚ source_folder
β”‚ 🎨 art.jpg
β”‚ πŸ“– book.pdf
β””β”€β”€β”€πŸ“ food
    β”‚ πŸŽ‚ cake.html
    β”œβ”€β”€β”€πŸ“ fruits
    β”‚ 🍌 banana.css
    β””β”€β”€β”€πŸ“ drinks
      β˜• coffee.js

πŸ“œ YAML Output File:

---
- art
- book
- food/cake
- food/fruits/banana
- food/drinks/coffee

ℹ️ Why I made this ?

I made this for a frontend website that needs to fetch data (via ajax) from many local YAML files that are organized into many directories.
As the website is frontend-only without any backend code, the location (url) of every single one of the files must be picked manually to fully fetch all the needed data.
If the website had a backend, I could simply just write a code that reads the directory containing all the files, list all their locations (urls), or even better, merge them all into one file and sent it to the client. But, there's no backend. All should rely on the client.
So, for simplifying the work, I just need to create a new local YAML file listing all the locations (urls) of the YAML data files. This is what this tool is for, to generate this file automaticly, so everytime I add or update the YAML data files, I just have to run this tool to generate the new list and save it as a YAML file. This list will be fetched by the client, and from it will be able to get all the YAML data files and fetch the full data.

πŸš€ Development

The source is written in C# 4.0 with .NET Framework 4.0 and WinForms using Visual Studio 2010.

πŸ“„ License

About

πŸ“„ A small windows utility that generates files-names list from YAML files within a directory

Topics

Resources

License

Stars

Watchers

Forks

Languages