MapServerAbsToClientFileName converts an absolute path on server relatively to the client working dir. For example, /tmp/nocc/cpp/clients/{clientID}/proj/1.cpp maps to /proj/1.cpp. If serverFileName is /usr/local/include, it's left as is.
(serverFileName string)
| 89 | // For example, /tmp/nocc/cpp/clients/{clientID}/proj/1.cpp maps to /proj/1.cpp. |
| 90 | // If serverFileName is /usr/local/include, it's left as is. |
| 91 | func (client *Client) MapServerAbsToClientFileName(serverFileName string) string { |
| 92 | return strings.TrimPrefix(serverFileName, client.workingDir) |
| 93 | } |
| 94 | |
| 95 | func (client *Client) CreateNewSession(in *pb.StartCompilationSessionRequest) (*Session, error) { |
| 96 | newSession := &Session{ |
no outgoing calls
no test coverage detected