Example #1
0
        public async Task FileWriteAllTextAsync(string path, string content, CancellationToken cancellationToken = default(CancellationToken))
        {
            FileInfo fileInfo = new FileInfo(path);

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

            SetUnixOwnerIfNeeded(path);
        }