import Foundation

internal protocol CurrentPathProvider {
    var currentPath: String { get }
}

internal final class DefaultCurrentPathProvider: CurrentPathProvider {
    var currentPath: String {
        return ShellExecutor().execute("pwd").trimmingCharacters(in: .newlines)
    }
}

import Foundation

internal protocol CurrentPathProvider {
    var currentPath: String { get }
}

internal final class DefaultCurrentPathProvider: CurrentPathProvider {
    var currentPath: String {
        return FileManager.default.currentDirectoryPath
    }
}

Use FileManager to get the current directory path
Use FileManager to get the current directory path