Giter Club home page Giter Club logo

filessearch's Introduction

Files Search

A program that searches for files in a given directory tree with a required modified time

Ensure

  • The search property file is in the same directory as filesSearch binary
  • The property file contains key-value pairs in each line
    • Key = The directory tree you want to start the search in
      • Can be relative path or full path
    • Value = The last modified date you want filter by
      • Can be either of today or YYYY-MM-DD formatted date
    • See Example

Remember

  • Output will be written in the same directory from where this software is run
    • Example: output_2020-07-29_18-10-58.csv
  • The output contains the following fields
    • FILE_NAME - File name with full path
    • FILE_MODIFIED_TIME - Last modified time of the file in local timezone
    • FILE_SIZE - File Size in bytes
    • DIRECTORY_FILES_COUNT - Total number of files in the directory of the file mentioned in the current record

Sample Console Log

aravinth@Aravinths-MacBook-Pro FilesSearchGo % ./dist/filesSearch_darwin-amd64.out 
2020/07/29 18:10:58 ./dist/filesSearch_darwin-amd64.out Version 1.0.0
2020/07/29 18:10:58 Loading configuration from search.properties
2020/07/29 18:10:58 Prepping output file: output_2020-07-29_18-10-58.csv
2020/07/29 18:10:58 Searching...
2020/07/29 18:10:58 Directory: /Users/aravinth/Projects => Date: 2020-07-29
2020/07/29 18:10:59 62 / 1211 found in 33 subdirectories in 15.201903ms
2020/07/29 18:10:59 Program Completed

License

This software is licensed under MIT License. Feel free to use it in anyway you like

filessearch's People

Contributors

aravinth2094 avatar

Watchers

 avatar

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.