refactored lsFiles & lsDir
renamed "current" variable to "currentPath"