Performing an action in response to a file system event
First Claim
1. A method comprising:
- a server detecting that a file system event has occurred or is going to occur relative to a node within a file system; and
in response to the server detecting that the file system event has occurred or is going to occur relative to the node, the server performing steps comprising;
determining that a first specified condition and a second specified condition are associated with the file system event in a configuration file;
in response to determining that the first specified condition and the second specified condition are associated with the file system event in the configuration file, reading, from the configuration file, data that defines the first specified condition and the second specified condition;
determining whether the first specified condition and the second specified condition are satisfied;
wherein determining whether the first specified condition and the second specified condition are satisfied comprises;
evaluating a first path-based expression that is specified in the configuration file as a part of said first specified condition, wherein the first path-based expression evaluates to either true or false; and
evaluating a second path-based expression that is specified in the configuration file as part of said second specified condition, wherein the second path-based expression evaluates to either true or false;
determining that the first specified condition is satisfied, but the second specified condition is not satisfied;
in response to determining that the first specified condition is satisfied, performing a first user-specified action that is associated with the first specified condition in the configuration file;
wherein a second user-specified action is associated with the second specified condition in the configuration file, and wherein the second user-specified action is different from the first user-specified action;
wherein the method is performed by one or more computing devices.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for performing an action in response to a file system event is provided. According to one aspect, sets of “event listeners” are associated with a file hierarchy and/or the nodes thereof. Each event listener contains a set of “event handlers.” Each event handler corresponds to a separate type of event that may occur relative to the file hierarchy'"'"'s nodes. When an event is going to occur relative to the hierarchy or a node thereof, all event listeners that are associated with that hierarchy/node are inspected to determine whether those event listeners contain any event handlers that correspond to the event'"'"'s type. Those event handlers that correspond to the event'"'"'s type are placed in an ordered list of event handlers to be invoked. As the event handlers in the list are invoked, programmatic mechanisms that correspond to those event handlers are executed to perform customized user-specified actions.
238 Citations
22 Claims
-
1. A method comprising:
-
a server detecting that a file system event has occurred or is going to occur relative to a node within a file system; and in response to the server detecting that the file system event has occurred or is going to occur relative to the node, the server performing steps comprising; determining that a first specified condition and a second specified condition are associated with the file system event in a configuration file; in response to determining that the first specified condition and the second specified condition are associated with the file system event in the configuration file, reading, from the configuration file, data that defines the first specified condition and the second specified condition; determining whether the first specified condition and the second specified condition are satisfied; wherein determining whether the first specified condition and the second specified condition are satisfied comprises; evaluating a first path-based expression that is specified in the configuration file as a part of said first specified condition, wherein the first path-based expression evaluates to either true or false; and evaluating a second path-based expression that is specified in the configuration file as part of said second specified condition, wherein the second path-based expression evaluates to either true or false; determining that the first specified condition is satisfied, but the second specified condition is not satisfied; in response to determining that the first specified condition is satisfied, performing a first user-specified action that is associated with the first specified condition in the configuration file; wherein a second user-specified action is associated with the second specified condition in the configuration file, and wherein the second user-specified action is different from the first user-specified action; wherein the method is performed by one or more computing devices. - View Dependent Claims (2, 3, 7, 8, 9, 21)
-
-
4. A method comprising:
-
detecting that a particular type of file system event has occurred or is going to occur relative to a node within a file system; in response to detecting that the particular type of file system event has occurred or is going to occur relative to the node, determining three or more event handlers that are associated with the particular type of file system event as specified in a configuration file; determining an invocation order of the three or more event handlers that ace is specified in the configuration file; and invoking at least one of the three or more event handlers according to the invocation order, wherein the at least one of the three or more event handlers changes the invocation order of at least one other of the three or more event handlers to an order that differs from the invocation order that is specified in the configuration file; wherein the method is performed by one or more computing devices. - View Dependent Claims (5, 6, 10)
-
-
11. A non-transitory computer-readable storage that stores instructions which, when executed by one or more processors, cause the one of more processors to perform the steps of:
-
a server detecting that a file system event has occurred or is going to occur relative to a node within a file system; and in response to the server detecting that the file system event has occurred or is going to occur relative to the node, the server performing steps comprising; determining that a first specified condition and a second specified condition are associated with the file system event in a configuration file; in response to determining that the first specified condition and the second specified condition are associated with the file system event in the configuration file, reading, from the configuration file, data that defines the first specified condition and the second specified condition; determining whether the first specified condition and the second specified condition are satisfied; wherein determining whether the first specified condition and the second specified condition are satisfied comprises; evaluating a first path-based expression that is specified in the configuration file as a part of said first specified condition, wherein the first path-based expression evaluates to either true or false; and evaluating a second path-based expression that is specified in the configuration file as a part of said second specified condition, wherein the second path-based expression evaluates to either true or false; determining that the first specified condition is satisfied, but the second specified condition is not satisfied; in response to determining that the specified condition is satisfied, performing an action that is specified in the configuration file. - View Dependent Claims (12, 13, 14, 15, 16, 22)
-
-
17. A non-transitory computer-readable storage that stores instructions which, when executed by one or more processors, cause the one of more processors to perform the steps of:
-
detecting that a particular type of file system event has occurred or is going to occur relative to a node within a file system; in response to detecting that the particular type of file system event has occurred or is going to occur relative to the node, determining three or more event handlers that are associated with the particular type of file system event as specified in a configuration file; determining an invocation order of the three or more event handlers that are is specified in the configuration file; and invoking at least one of the three or more event handlers according to the invocation order, wherein the at least one of the three or more event handlers changes the invocation order of at least one other of the three or more event handlers to an order that differs from the invocation order that is specified within the configuration file. - View Dependent Claims (18, 19, 20)
-
Specification