Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public async Task <FileInformation?> GetItemInfo(string fileName) => await provider.GetItemInfo(FixRoot(fileName)).ConfigureAwait(false);