File system warnings application programing interface (API)
The present technology pertains to a organization directory hosted by a synchronized content management system. The corporate directory can provide access to user accounts for all members of the organization to all content items in the organization directory on the respective file systems of the members' client devices. Members can reach any content item at the same path as other members relative to the organization directory root on their respective client device. In some embodiments novel access permissions are granted to maintain path consistency.
1. A non-transitory computer readable medium comprising instructions stored thereon, when executed the instructions are effective to cause a content management system to:
receive, through a file system warnings API from a third-party application, a communication from a client that specifies an action on a content item, the communication includes a file system warnings API call that triggers a determination for whether the action requires a file system warning once the action is committed by the content management system;
commit the action on the content item by the content management system;
after completing committing the action, determine that the action requires the file system warning;
prior to sending the file system warning, determine if the file system warning is of a category of excluded warnings; and
responsive to determining that the action requires the file system warning and the file system warning is not in the category of excluded warnings, send the file system warning to the client through the third-party application using the file system warnings API,
wherein the action on the content item that was not previously located in a shared folder is a move of the content item into the shared folder, the action is a move of the content item from a confidential folder to a non-confidential folder, or the action is reserved for an administrator using an administrator console, and
wherein the file system warning includes a message that warns against the action and provides a remedial option or that the action will be undone.
2. The non-transitory computer readable medium of claim 1 , wherein the file system warning is a confirmatory warning including a message regarding a risk associated with the action on the content item, and includes a selectable option to confirm or perform a new action that reverts the content item to a state prior to the commit of the action.
3. The non-transitory computer readable medium of claim 2 , wherein the instructions cause the content management system to:
receive a response to the confirmatory warning requesting to perform the new action that reverts to the state prior to the commit of the action; and
in response to the request to perform the new action, perform the new action at the content management system that reverts to the state prior to the commit of the action.
4. The non-transitory computer readable medium of claim 1 , wherein the client is separate from and in communication with the content management system and wherein the client does not natively support file system warnings.
5. The non-transitory computer readable medium of claim 1 , wherein the client is a third party to the content management system.
6. A method comprising:
receiving, through a file system warnings API from a third-party application, a communication from a client that specifies an action on a content item, the communication includes a file system warnings API call that triggers a determination for whether the action requires a file system warning once the action is committed by a content management system;
committing the action on the content item by the content management system;
after completing committing the action, determining that the action requires the file system warning;
prior to sending the file system warning, determining if the file system warning is of a category of excluded warnings; and
responsive to determining that the action requires the file system warning and the file system warning is not in the category of excluded warnings, sending the file system warning to the client through the third-party application using the file system warnings API,
wherein the action on the content item that was not previously located in a shared folder is a move of the content item into the shared folder, the action is a move of the content item from a confidential folder to a non-confidential folder, or the action is reserved for an administrator using an administrator console, and
wherein the file system warning includes a message that warns against the action and provides a remedial option or that the action will be undone.
7. The method of claim 6 , wherein the file system warning is a confirmatory warning including a message regarding a risk associated with the action on the content item, and includes a selectable option to confirm or perform a new action that reverts the content item to a state prior to the commit of the action.
8. The method of claim 7 , comprising:
receiving a response to the confirmatory warning requesting to perform the new action that reverts to the state prior to the commit of the action; and
in response to the request to perform the new action, performing the new action at the content management system that reverts to the state prior to the commit of the action.
9. A content management system comprising:
at least one processor; and
at least one memory having instructions stored thereon, that when executed the instructions are effective to cause the at least one processor to:
receive, through a file system warnings API from a third-party application, a communication from a client that specifies an action on a content item, the communication includes a file system warnings API call that triggers a determination for whether the action requires a file system warning once the action is committed by the content management system;
commit the action on the content item by the content management system;
after completing committing the action, determine that the action requires the file system warning;
prior to sending the file system warning, determine if the file system warning is of a category of excluded warnings; and
responsive to determining that the action requires the file system warning and the file system warning is not in the category of excluded warnings, send the file system warning to the client through the third-party application using the file system warnings API,
wherein the action on the content item that was not previously located in a shared folder is a move of the content item into the shared folder, the action is a move of the content item from a confidential folder to a non-confidential folder, or the action is reserved for an administrator using an administrator console, and
wherein the file system warning includes a message that warns against the action and provides a remedial option or that the action will be undone.
10. The content management system of claim 9 , wherein the file system warning is a confirmatory warning including a message regarding a risk associated with the action on the content item, and includes a selectable option to confirm or perform a new action that reverts the content item to a state prior to the commit of the action.
11. The content management system of claim 10 , wherein the instructions cause the at least one processor to:
receive a response to the confirmatory warning requesting to perform the new action that reverts to the state prior to the commit of the action; and
in response to the request to perform the new action, perform the new action at the content management system that reverts to the state prior to the commit of the action.