public static async Task <IEnumerable <string> > MakeRelativeToRUserDirectoryAsync(this IRSession session, IEnumerable <string> names, CancellationToken cancellationToken = default(CancellationToken)) { var userDirectory = await session.GetRUserDirectoryAsync(cancellationToken); return(names.Select(n => n.MakeRRelativePath(userDirectory))); }
public static async Task <IEnumerable <string> > MakeRelativeToRUserDirectoryAsync(this IRSession session, IEnumerable <string> names) { var userDirectory = await session.GetRUserDirectoryAsync(); return(names.Select(n => MakeRelativeToUserDirectory(n, userDirectory))); }
public static async Task <string> MakeRelativeToRUserDirectoryAsync(this IRSession session, string name, CancellationToken cancellationToken = default(CancellationToken)) { var userDirectory = await session.GetRUserDirectoryAsync(cancellationToken); return(name.MakeRRelativePath(userDirectory)); }
public static async Task <string> MakeRelativeToRUserDirectoryAsync(this IRSession session, string name) { var userDirectory = await session.GetRUserDirectoryAsync(); return(MakeRelativeToUserDirectory(name, userDirectory)); }