Hello,
I struggle with a path like /Users/user1/Library/Application Support/b4j.example/test to set it as shell working directory.
I tried to use it like above or to escape whitespaces:
The result is always the same when I execute the shell command:
Does anyone know how to handle whitespace in a path to use with shell working directory?
Thanks,
Thomas
I struggle with a path like /Users/user1/Library/Application Support/b4j.example/test to set it as shell working directory.
I tried to use it like above or to escape whitespaces:
B4X:
Dim sh1 As Shell
sh1.Initialize("Test", "<some command>", Null)
sh1.WorkingDirectory = "/Users/user1/Library/Application Support/b4j.example/test" ' does not work
sh1.WorkingDirectory = "/Users/user1/Library/Application Support/b4j.example/test".Replace(" ", "\ ") ' does not work
sh1.WorkingDirectory = """/Users/user1/Library/Application Support/b4j.example/test""" ' does not work
The result is always the same when I execute the shell command:
B4X:
java.io.IOException: /Users/user1/Library/Application Support/b4j.example/test" doesn't exist.
Does anyone know how to handle whitespace in a path to use with shell working directory?
Thanks,
Thomas