static boolean pathIsWritable()

in src/main/java/com/microsoft/appcenter/appium/DriverHelper.java [47:62]


    static boolean pathIsWritable(String workspace) {
        if (workspace != null && !Objects.equals(workspace, "")) {
            Path path = Paths.get(workspace);
            if (Files.exists(path)) {
                return Files.isWritable(path);
            } else {
                try {
                    Files.createDirectory(path);
                    return true;
                } catch (IOException e) {
                    return false;
                }
            }
        }
        return false;
    }