| 274 | |
| 275 | SC::ResultProcess SC::Process::setWorkingDirectory(StringSpan processWorkingDirectory) |
| 276 | { |
| 277 | #if SC_PLATFORM_WINDOWS |
| 278 | return ProcessWindowsDetail::makeWorkingDirectoryAbsolute(processWorkingDirectory, currentDirectory.view(), |
| 279 | currentDirectory); |
| 280 | #else |
| 281 | if (not currentDirectory.assign(processWorkingDirectory)) |
| 282 | return ResultProcess(ProcessError::PathCapacityExceeded); |
| 283 | return ResultProcess(true); |