FileManager

extension FileManager
  • Returns a list of all file names inside a directory

    Throws

    error if path does not exist

    Declaration

    Swift

    open func swiftFilesInDirectory(atPath path: String) throws -> [String]

    Parameters

    path

    path string of directory

    Return Value

    list of all file names