question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, is there a way to watch folders for changes and then trigger organize?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
tfeldmanncommented, Oct 23, 2018

This is not integrated into organize itself, but a solution might be available for your OS:

But this is something that could be interesting for a lot of users. So thank you for the suggestion, I added to the todo list 👍

0reactions
danboheacommented, Dec 8, 2019

Some code examples for how to get this working under each OS would be really helpful here. I’ve been tinkering with this on Linux and actually had more luck with inotify-hookable than inotify-tools.

inotify-hookable can be installed via most package managers. I’m on Kubuntu and so just used sudo apt install inotify-hookable.

Basic docs: https://metacpan.org/pod/App::Inotify::Hookable

# ~/.bash_profile
inotify-hookable -w ~/Downloads -c "organize run" --no-r &
  • -w ~/Downloads Watches my ~/Downloads directory.
  • -c "organize run" sets up the command to run when a file in my watched directory is modified.
  • --no-r disables recursive watching which is enabled my default.
  • & runs the process in the background (omitting this gave me troubles logging back in, naturally).

Loving organize btw. Just started messing around with it yesterday. As a previous macOS Hazel user this is an itch I’ve been looking to scratch on Linux for some time 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watch Folders - IBM
Watch Folders enables large-scale, automated file and directory transfers, including ultra-large directories with over 10 million items and directories with ...
Read more >
What is a Watch Folder? - Encoding.com Help
A watch folder is a directory that's specified to be polled periodically by an encoding platform for new content. When new content arrives, ......
Read more >
Watch Folders for macOS - Frame.io
A brand new way to move your media. Designed for video. Ideal for dailies. Send your raw assets and WIP to Frame.io for...
Read more >
Watch Folder - Mendeley Resource Center - Google Sites
What is a Watch Folder? It is nothing more than one (or more) folder(s) that you designate as being under surveillance by Mendeley...
Read more >
Folder Watch
Folder Watch is a convenient, automated way to add documents to SmartOffice. Folder Watch monitors one or more folders on your computer for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found