Ejemplo n.º 1
0
        public async Task FileWriteAllBytesAsync(string path, byte[] content, CancellationToken cancellationToken = default(CancellationToken))
        {
            FileInfo fileInfo = new FileInfo(path);

            CreateDirectoryAndParents(fileInfo.Directory);
            await _fileSystemOperations.WriteAllBytesAsync(path, content, cancellationToken);

            SetUnixOwnerIfNeeded(path);
        }