private FileInformation?MakeFileInformation(string fileName) { var result = Wait(provider.GetItemInfo(fileName)); if (result != null && ReadOnly) { var info = (FileInformation)result; info.Attributes |= FileAttributes.ReadOnly; } return(result); }
public async Task <FileInformation?> GetItemInfo(string fileName) => await provider.GetItemInfo(FixRoot(fileName)).ConfigureAwait(false);