There is a package on the planet that will handle *nix file permissions: <a href="http://planet.plt-scheme.org/package-source/synx/util.plt/2/0/" target="_blank">http://planet.plt-scheme.org/package-source/synx/util.plt/2/0/</a> (permissions)<br>
Here is a related thread: <a href="http://groups.google.com/group/racket-users/browse_thread/thread/6a05222262b29ec3?tvc=2" target="_blank">http://groups.google.com/group/racket-users/browse_thread/thread/6a05222262b29ec3?tvc=2</a><br>
<br><div class="gmail_quote">On Fri, Feb 25, 2011 at 10:24 AM, <span dir="ltr"><<a href="mailto:mike@goblin.punk.net">mike@goblin.punk.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Feb 22, 2011 at 08:36:01PM +0100, Manfred Lotz wrote:<br>
> Hi there,<br>
> Is there a way to set file resp. directory permission and ownership<br>
> from racket? I didn't find anything in the documentation.<br>
<br>
</div>For lack of an answer from someone more experienced, I see two<br>
ways to do this.<br>
<br>
The quick & dirty way would be to call the usual permission and<br>
ownership programs from within Racket. See<br>
<a href="http://docs.racket-lang.org/reference/subprocess.html#%28part._.Simple_.Subprocesses%29" target="_blank">http://docs.racket-lang.org/reference/subprocess.html#(part._.Simple_.Subprocesses)</a><br>
<br>
If you're more ambitious, you can develop a foreign function to<br>
do the job. See <a href="http://docs.racket-lang.org/foreign/" target="_blank">http://docs.racket-lang.org/foreign/</a><br>
<br>
Mike<br>
<div><div></div><div class="h5">_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</div></div></blockquote></div><br>