Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8459771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:25:15+00:00 2026-06-10T13:25:15+00:00

I have a folder containing a hierarchy of subfolders and files. At regular intervals,

  • 0

I have a folder containing a hierarchy of subfolders and files.

At regular intervals, I need to check whether any file/folder has been modified/removed/added.

I am thinking of developing from scratch an algorithm that:

  1. Saves a representation of the whole arborescence in an embedded database (like SQLite) or file.
  2. Saves the checksum of each file into the same database.
  3. At the next call, compare this database with the actual filesystem.
  4. Update the database’s information with what is found to have been changed.
  5. Repeat from step 3.

Changes might occur while my program is not running, it can be closed/open at any time.
For instance the user might close the program on Monday, edit files on Tuesday, and re-open the program on Wednesday. I need to check what changed during that time, so I can’t use FileSystemWatcher.

Before I reinvent the wheel, is there already some library that does this?

Note:

  • I don’t have access to any VCS binaries like git or svn.
  • Language is C#, but I am ready to port any small Java library.
  • This is for an open source software, so it needs to be an open source library.
  • It is for a embedding into a desktop widget, so the lighter the better.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:25:17+00:00Added an answer on June 10, 2026 at 1:25 pm

    If you can’t use the FileSystemWatcher (which I hate anyways, it’s the flakiest class in the framework IMO) your only other option is to manually keep track of the files. You will need to store the filenames and a hash of the file contents to check if the files are added/removed or changed. I would store this using a Database either SQLExpress or SQLite which has a C# wrapper.

    Your program would check the files on start/stop and then I would use a timer while it’s running to periodically check the files.

    Edit: Clarification from the OP, I don’t know of any library that does this out of the box. However it would be trivial to implement on your own. A small DB with one table, and a timer control in a console application or windows service would do exactly what you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my project i have a folder containing N number of files. I need
I have a folder containing .tcb and .tch files. I need to know what
I have a zip file containing a folder and inside the folder I have
I have a folder containing hundreds of TTL (TeraTermLanguage) files. Now I wanted indent
I have a folder structure with one main parent folder containing many subfolders, and
I have folder containing several files and sub-folders such as the following: -/folder -/subfolder
Plone version: 4.1.4 I have one folder containing 50 files. Author info can be
Is there any way, with the Eclipse IDE, to have a master folder containing
I have a php script that steps through a folder containing tab delimited files,
i want to download folder containing files like pdf,jpg,png etc from web services.I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.