Ad
Code
Diff
  • def ls(dir):
        import os    
        return(os.listdir(dir))
    • import os
    • print(os.listdir('directorypath'))# Replace 'directorypath' with path to directory
    • def ls(dir):
    • import os
    • return(os.listdir(dir))