|
|
|
Date Posted: |
August 12th, 1999
|
|
|
Last Updated: |
August 12th, 1999
|
|
|
License: |
Other Open Source License |
|
|
Downloads: |
1,097 total; 2 recently |
|
|
Page Views: |
7,186 total |
|
|
User Rating: |
awaiting 10 votes |
 |
|
Jump to the Downloads section |
|
 |
 |
About Storage Kit Utilities:
This class library makes working with the storage kit easier. Included are classes to capture the Attributes and the Node Monitoring system in a set of C++ classes. Documentation & source included.
Class Attribute models a BeOS file system attribute for your application. A new one can be written, an existing one can be opened, and the presence of one can be tested for. The Attribute exists in memory as long as the class Attribute exists.
Class NodeMonitor will watch a file system node for you, and will deliver notifications when a particular file system event happens. You can be informed of attribute changes, directory changes, renames, size/date changes, and so on.
Class DirectoryMonitor is a specialization of NodeMonitor to include directory watching.
Class PathMonitor will simply watch the path of a given file system node, no matter where it gets moved to, and will deliver notifications when a file is renamed or popped into a different directory.
Included are two sample programs: one, the stupid one, will just watch your Trashcan and NetPositive's settings file, and emit notifications when one or the other's properties or contents changes. The second, smart one, is for use in scripting. It can execute any shell script you are to name or describe when a file system event goes off.
|
 |
|
 |
Latest Version |
 |
|
 |
| |
 |
|
Details about this version:
This version adds the scripting application "watcher".
watcher's usage is like so:
Usage:
watcher [-m<command>] [-c<command>] [-a<command>] [-d<command>]
[-d] <file>
or
watcher [-m<command>] [-c<command>] [-a<command>] [-d<command>]
[-n<command>] [-r<command>] [-d] <directory>
Where:
file is a path to a file or symbolic link to watch
directory is a path to a directory to watch
Options:
-v Be verbose.
-1 Exit after triggering on one event.
Default: trigger forever.
For directories, symlinks, and files:
-m<command> Call command when node moves.
\%1=old path
\%2=new path
-c<command> Call command when node's size/date changes.
\%1=path
-a<command> Call command when node's attribute changes.
\%1=path
\%2=attribute
-d<command> Call command when file has been deleted.
No further triggers will occur.
\%1=path
For directories only:
-n<command> Call command when new node arrives in directory.
\%1=directory path
\%2=new file name
-r<command> Call command when a node is removed from directory.
Deleted file name is unavailable!
\%1=directory path
|
| |
 |
|
Intel Version - requires R4.5 (55 KB) |
788 downloads |
|
 |
|
 |
 |
| |
  |
[rating: 10] |
|
 |
Primary download location |
|
|
| Add Additional Location |
 |
| |
 |
|
PowerPC Version - requires R3 (55 KB) |
309 downloads |
|
 |
|
 |
 |
| |
  |
[rating: 10] |
|
 |
Primary download location |
|
|
| Add Additional Location |
 |
|
 |
|
| Source Included |
 |
 |
 |
 |
 |
| |
 |
 |
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
|
|
|