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.
- 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.
π source_folder
β π¨ art.jpg
β π book.pdf
ββββπ food
β π cake.html
ββββπ fruits
β π banana.css
ββββπ drinks
β coffee.js
---
- art
- book
- food/cake
- food/fruits/banana
- food/drinks/coffee
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.
The source is written in C# 4.0 with .NET Framework 4.0 and WinForms using Visual Studio 2010.
- Licensed under the MIT License.
- Using Free FatCow Farm Fresh Icons 3.92 licensed under the CC BY 3.0 License.