'Is it possible to use unix wildcards with Scala's ProcessBuilder?

Process( Seq( "rm", "-r", "*" ), new File( "/some/dir" ) ) !

This code will fail (rm: *: No such file or directory) because the * wildcard is interpreted as string value rather than a unix wildcard. Is it possible to change this behavior?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source