directoryListing derived from ygNode | Example | Source | Header |
Messages |
directory | string, [integer] | generate events with directory and file names |
index | integer | generate events with directory and file names |
truncate | set the flag to truncate file names included in the YG_PATH | |
maximum | [integer] | set the total number of directories and files to report |
Events |
changed | total, parent, path | |
directory | name, path, type, path, type, number |
Comments |
constructor directoryListing
method reset
1 clear the directory name
2 set ygpath to true
3 set the maximum printout to 100
method message
1 generate events with directory and file names
2 generate events with directory and file names
3 set the flag to truncate file names included in the YG_PATH
4 set the total number of directories and files to report
method checkDirectory
0.1 if the directory is a valid one
0.1.0.1 find parent directory
0.1.0.2 discard the current directory handle
0.1.0.3 discard the parent directory handle
0.1.0.4 for each entry up to the maximum
0.1.0.4.0.0.1 order the directories in alphabetical order
0.1.0.4.0.0.2 insert the new directory into the list
0.1.0.4.0.0.1 order the files in alphabetical order
0.1.0.4.0.0.2 insert the new file into the list
0.1.0.4.1 closedir(handle);