using 15.2 Filesystem i cannot create a directory, first i use make-directory and now i tried make-directory*, i just got a file with zero bytes:
-rw------- 1 _www wheel 0 18 nov 17:11 VLeG3si
-rw------- 1 _www wheel 0 18 nov 17:11 VLeG3si
drwxrwxrwt 146 root wheel 4672 18 nov 17:11 .
-rwxrw-rw- 1 _www wheel 1313 18 nov 17:11 VLeG3si.xml
-rwxrw-rw- 1 _www wheel 76304 18 nov 17:11 VLeG3si.txt
i used :
(display "interpole-fields : trajectory-txt=") (display trajectory-txt) (newline)
;; creating a temporary directory for output of computation (physical data value at trajectory points)
(make-directory* trajectory-txt)
output log of web server show:
[191] => interpole-fields : trajectory-txt=/private/var/tmp/VLeG3si
[192] => interpole-fields : trajectory-file=/private/var/tmp/VLeG3si.txt
i have regular access to the directory the file could be created but not the directory.
web server run under _www id on Mac OS Sequoia
_www@MacBook-Pro-Touch-Bar tmp % groups
_www wheel everyone staff localaccounts admin com.apple.sharepoint.group.5 _appstore _lpadmin _lpoperator _developer _analyticsusers com.apple.access_ftp com.apple.access_screensharing com.apple.access_ssh-disabled com.apple.access_remote_ae com.apple.sharepoint.group.3 com.apple.sharepoint.group.1 com.apple.sharepoint.group.2 com.apple.sharepoint.group.4
does i used the bad method?
update:
if i test from gui it works:
> (current-directory)
#<path:/Users/mattei/>
> (make-directory* "toto")
> (make-directory* "/private/var/tmp/toto")
-rw------- 1 _www wheel 0 18 nov 17:11 VLeG3si
-rwxrw-rw- 1 _www wheel 1313 18 nov 17:11 VLeG3si.xml
-rwxrw-rw- 1 _www wheel 76304 18 nov 17:11 VLeG3si.txt
drwxr-xr-x@ 2 mattei wheel 64 18 nov 19:37 toto
drwxrwxrwt 147 root wheel 4704 18 nov 19:37 .
if i try from the user _www in command line Racket:
_www@MacBook-Pro-Touch-Bar tmp % who am I
_www ttys004 15 nov 15:42 (::1)
_www@MacBook-Pro-Touch-Bar tmp % export PATH=/Applications/Racket/bin:$PATH
_www@MacBook-Pro-Touch-Bar tmp % racket
Welcome to Racket v8.14 [cs].
> (make-directory* "/private/var/tmp/directory")
> (exit)
_www@MacBook-Pro-Touch-Bar tmp % pwd
/private/var/tmp
_www@MacBook-Pro-Touch-Bar tmp % ls -la directory
total 0
drwxr-xr-x 2 _www wheel 64 18 nov 19:44 .
drwxrwxrwt 148 root wheel 4736 18 nov 19:44 ..
it works too , so it is not a problem of Unix user rights, but why from Racket started from PHP i can not do it? but i can lauch command, python code,etc from same Racket code.