Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function explore_dirtree(prevdir As Variant,inidir As Variant,db As notesdatabase,recurse As Integer)
Dim paramdoc As notesdocument
Dim filelist As notesitem
Dim dirlist As notesitem
Dim dirvalue As String
Dim filefound As Integer
Set paramdoc=db.createdocument
Set filelist = New notesitem(paramdoc,"filelist","")
filefound = False
'build list of files
dirvalue = Dir$("*.*",ATTR_NORMAL)
Do While dirvalue <> ""
If Not(dirvalue = "." Or dirvalue = "..") Then
Call filelist.appendtotextlist(dirvalue)
filefound = True
End If
dirvalue = Dir$()
Loop
Delete catdoc
Set dirlist = New notesitem(paramdoc,"DirList","")
'build list of directories
dirvalue = Dir$("*.*",ATTR_DIRECTORY)
Do While dirvalue <> ""
If Not(dirvalue = "." Or dirvalue = "..") Then
If filefound Then
If Not(filelist.contains(dirvalue)) Then
Call dirlist.appendtotextlist(dirvalue)
End If
Else
Call dirlist.appendtotextlist(dirvalue)
End If
End If
dirvalue = Dir$()
Loop
If recurse Then
Forall x In dirlist.values
If x <> "" Then
dirvalue = inidir & "\" & x
Chdir dirvalue
Call explore_dirtree(prevdir,dirvalue,db,recurse)
End If
End Forall
End If
Chdir prevdir
End Function