Comments (3)
Adding some builder methods to PosixPermissions
sounds good to me. Both add
and remove
maybe?
I could also see something like:
p.modify("+x")
PosixPermissionChange.fromString("+x").traverse(p.modify)
p | PosixPermissions.fromString("x--x--x--").get
p + PosixPermissions.fromString("x--x--x--").get
andp - PosixPermissions.fromString("x--x--x--").get
from fs2.
Fixed by #3396
from fs2.
I just spent some time working on the additional changes we talked about. and TIL, that chmod supports a lot more than I had anticipated, see the docs.
For example one can do: u=g
to set the [u]sers permissions to whatever the [g]roup permissions are. You can also do +x,+w
.
Do we want to match what chmod can accepts, or allowing a subset of that would be reasonable? eg:
- "+x" add executable bit to all
- "u-r" removes the read bit for users
- "g=rw" sets the group permission as "rw-" (remove executable if it's there)
from fs2.
Related Issues (20)
- Add `Channel#sendClose` HOT 1
- sbt doc task fails for scala 3 and fs2-io HOT 2
- Update copyright for 2023 HOT 1
- parEvalMap messes up unmasking of cancellation
- Feature request: Dynamic metering of Streams HOT 3
- Bad performance of fs2.io.file.Files[IO].walk() HOT 4
- Fetching permissions through getPosixFileAttributes always fails with None.get
- Fetched file attributes fail equality check HOT 1
- Optimize `Stream#evalTapChunk`
- Root `Path` is incorrectly handled in ScalaJS HOT 4
- Error using reactive streams toStreamBuffered with newer versions of the AWS SDK HOT 9
- Usage of direct buffers on FS2 Socket causes an unpredictable memory use on http4s with embers backend HOT 5
- failed: fs2.io.net.udp.UdpSuite.udp HOT 1
- reactive-streams interop: handled errors treated as unhandled and printed to the console HOT 1
- Memory leak when a recursive stream has error handling HOT 5
- DatagramSocket read stalls on JVM HOT 2
- Deprecated Files.walk(start: Path, maxDepth: Int, followLinks: Boolean) ignores maxDepth and followLinks HOT 1
- `Stream` created with `fromIterator` looping infinitely when evaluated in 3.10.x HOT 3
- Introduce higher-level "network client" APIs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fs2.