Update RingPM - ringpm/core/listoffiles.ring - Better Code (After Dir() function update in Ring 1.10)
@@ -17,17 +17,11 @@ class ListOfFiles
aOutput = []
for aSub in aList
if aSub[2] # Directory
- Try
cNewPath = cPath + "/" + aSub[1]
aSubOutput = listAllFiles(cNewPath,cExt)
for item in aSubOutput
aOutput + item
next
- Catch
- # We use Try/Catch/Done
- # To Workaround a bug in Linux
- # when aSub[2] = True for files (not folders)
- Done
else # File
if cExt != NULL
if right(aSub[1],len(cExt)+1) = "."+cExt
