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.
** usage ? EmptyDir("c:\apps\myfolder\*.*")
** or ? EmptyDir("c:\apps\myfolder\")
** or ? EmptyDir("c:\apps\myfolder")
** returns .t. if empty, .f. if not empty
Function EmptyDir
parameter m.Path
local m.flg,m.count,i
**
** test the end of the folder name and put wildcards on
**
if Right(m.path,4) <> "\*.*"
if Right(m.path,1) <> "\"
m.Path = m.Path+"\*.*"
else
m.Path = m.Path+"*.*"
endif
endif
m.flg = .f.
m.count = Adir(TmpArray,m.Path,"DHS")
if m.count = 0
m.flg = .t.
else
** check for the entries for folders . and ..
m.flg = .t.
for i = 1 to m.count
if !(TmpArray[i,1] == "." .or. TmpArray[i,1] == "..")
m.flg = .f.
i = m.count
endif
next
endif
return(m.flg)