BBjFileSystem::unwatchAllDirectories

Description

In BBj 17.0 and higher, this method stops watching all directories currently being watched with BBjFileSystem::watchDirectory.

Syntax

Return Value

Method

void

unwatchAllDirectories()

Parameters

None.

Return Value

None.

Remarks

None.

Example

rem ' BBjFileSystem::unwatchAllDirectories
setesc eoj
fs! = bbjapi().getFileSystem()
print "watchDirectory ",fs!.watchDirectory(".","watch")
print "watchDirectory ",fs!.watchDirectory("..","watch")
process_events
eoj:
rem ' unwatch individual directories:
fs!.unwatchDirectory(".")
fs!.unwatchDirectory("..")
rem ' or unwatch all of them at once:
fs!.unwatchAllDirectories()
release
watch:
event! = bbjapi().getLastEvent()
print event!.getEventName()," ",
print event!.getDirectory()," ",
print event!.getFilename()," ",
print event!.getAction(),
print event!.getChange()
return

See Also

BBjDirectoryChangeEvent

BBjFileSystem

BBjFileSystem::watchDirectory

BBjFileSystem::unwatchDirectory

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.