Skip to content

Conversation

XiaochenCui
Copy link
Contributor

@XiaochenCui XiaochenCui commented Aug 19, 2025

fix #1406

How to use

            let result = await puter.fs.write('~/test.txt', 'hello', {
                share: {
                    recipients: ['tom', 'jerry'],
                    access: 'read',
                },
                withPermissions: true,
            });

NB

@XiaochenCui XiaochenCui force-pushed the fs/write-1406 branch 2 times, most recently from 8032490 to bfaa863 Compare August 19, 2025 23:23
@KernelDeimos
Copy link
Contributor

We can merge this sooner than memoryfs if you can base it on main

@XiaochenCui
Copy link
Contributor Author

We can merge this sooner than memoryfs if you can base it on main

now it's based on main

@XiaochenCui XiaochenCui marked this pull request as draft August 29, 2025 17:35
@XiaochenCui
Copy link
Contributor Author

TODO: Create more refined tests, for example, verifying access to the shared file as the recipient.

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.

parameter for /write for share mode

2 participants