Skip to content

Conversation

ChineseAStar
Copy link

dadb push fails on Windows because readMode reads file permissions in unix:mode.

@Fishbowler
Copy link

Can you describe the issue a little more fully?

@ChineseAStar
Copy link
Author

On Windows, calling Dadb.push(File…) throws

java.lang.UnsupportedOperationException: View 'unix' not available

because the default implementation calls

Files.getAttribute(file.toPath(), "unix:mode")

to read permissions, and Windows filesystems don’t support the unix:mode attribute view.

@Fishbowler
Copy link

Maestro must already be doing some wizardry inside Java-land to solve for this 🤔

@ChineseAStar
Copy link
Author

I’m not sure about that—I haven’t used Maestro. I just ran into this issue in my own project and fixed it. I think extending Dadb’s compatibility isn’t a bad idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants