Hi Enwei,<br><br>I think you might be running into bugs, given how in this and other threads people are bumping into bugs with the content interface.<br><br>I haven't tried write, but I did have ubuntu-app-platform using paths at first and that did work fine, aside from the mounting bug discussed in this thread. However there are very subtle details like you shouldn't use / at the end - see <a href="https://bugs.launchpad.net/snappy/+bug/1635170">https://bugs.launchpad.net/snappy/+bug/1635170</a> I filed.<br><br>I can't test now since I'm on a long leave and only using my Ubuntu Phone.<br><br>-Timo<br><br>keskiviikko 23. marraskuuta 2016 Enwei Zhang <<a href="mailto:enwei.zhang@canonical.com">enwei.zhang@canonical.com</a>> kirjoitti:<br>> Hello,<br>> Thanks Timo for the good example.<br>> While I tried to write two snaps(server to share paths to client) that use content interface to share files, I found "write" slot doesn't work.<br>> The code snippet from server side snapcraft.yaml<br>><br>> slots:<br>> test-share:<br>> content: test-content-server<br>> interface: content<br>> write:<br>> - .<br>><br>> When accessing from client side snap, it shows "permission denied".<br>><br>> Also, I found only "." path can work, other path like below "./bin" cannot work. When you run "snap interfaces", below slot "test-share" will not show up.<br>><br>> slots:<br>> test-share:<br>> content: test-content-server<br>> interface: content<br>> read:<br>> - ./bin<br>><br>> Are these bugs or my misunderstanding? I tested on both 2.16 and 2.17 snapd.<br>> Thanks for your answer.<br>><br>> Br<br>> Enwei<br>>><br>>> --<br>>> Snapcraft mailing list<br>>> <a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>>> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft">https://lists.ubuntu.com/mailman/listinfo/snapcraft</a><br>><br>>