Code Monkey home page Code Monkey logo

filenames-lister's Introduction

๐Ÿ“ 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.