async splitUri()

in src/controller/directoryController.ts [66:84]


  async splitUri(uri: vscode.Uri) {
    const fullPath = uri.fsPath;
    const rootFolder = await this.getRootFolderPath();
    const relativePath = fullPath.replace(rootFolder, "");
    const [_, guid, version] = relativePath.split(path.sep);
    const filepath = relativePath.split(version)[1];
    const versionPath = version
      ? path.join(rootFolder, guid, version)
      : undefined;
    return {
      rootFolder,
      versionPath,
      fullPath,
      relativePath,
      guid,
      version,
      filepath,
    };
  }