Skip to content

Commit 7f8e3ea

Browse files
committed
Merge branch 'release/v1.0.1'
2 parents 0e7930e + f3ced8c commit 7f8e3ea

10 files changed

Lines changed: 35 additions & 17 deletions

File tree

Abstract.FileSystem.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1515
ProjectSection(SolutionItems) = preProject
1616
src\Abstract.FileSystem.snk = src\Abstract.FileSystem.snk
1717
appveyor.yml = appveyor.yml
18+
CHANGELOG.md = CHANGELOG.md
1819
LICENSE = LICENSE
1920
README.md = README.md
2021
testenvironments.json = testenvironments.json

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Abstract.FileSystem
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## v1.0.1
8+
### Fixed
9+
- Fixed XML Documentation
10+
11+
## v1.0.0
12+
### Added
13+
- Abstraction for System.IO.File
14+
- Abstraction for System.IO.Directory
15+
- Abstraction for System.IO.Path

build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Build : NukeBuild
3232
[GitRepository] readonly GitRepository GitRepository;
3333

3434
[Parameter("Version to be injected in the Build")]
35-
public string Version { get; set; } = $"1.0.0";
35+
public string Version { get; set; } = $"1.0.1";
3636

3737
[Parameter("The Buildnumber provided by the CI")]
3838
public int BuildNo = 1;

src/Abstract.FileSystem/DirectoryService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Abstract.FileSystem
66
{
7+
/// <summary>
8+
/// Wrapper fpr System.IO.Directory
9+
/// </summary>
710
public class DirectoryService : IDirectoryService
811
{
912
/// <summary>

src/Abstract.FileSystem/File.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void AppendAllLines(string path, IEnumerable<string> contents)
5454
_fileService.AppendAllLines(path, contents);
5555
}
5656

57-
// <summary>
57+
/// <summary>
5858
/// Appends lines to a file by using a specified encoding, and then closes the file.
5959
/// If the specified file does not exist, this method creates a file, writes the
6060
/// specified lines to the file, and then closes the file.
@@ -276,7 +276,6 @@ public static DateTime GetLastWriteTimeUtc(string path)
276276
}
277277

278278
/// <summary>
279-
/// /// <summary>
280279
/// Moves a specified file to a new location, providing the option to specify a new file name.
281280
/// </summary>
282281
/// <param name="sourceFileName">The name of the file to move. Can include a relative or absolute path.</param>
@@ -287,13 +286,12 @@ public static void Move(string sourceFileName, string destFileName)
287286
}
288287

289288
/// <summary>
290-
/// Opens a System.IO.FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option.
289+
/// Opens a System.IO.FileStream on the specified path, with the specified mode and access.
291290
/// </summary>
292291
/// <param name="path">The file to open.</param>
293292
/// <param name="mode">A System.IO.FileMode value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.</param>
294293
/// <param name="access">A System.IO.FileAccess value that specifies the operations that can be performed on the file.</param>
295-
/// <param name="share">A System.IO.FileShare value specifying the type of access other threads have to the file.</param>
296-
/// <returns>A System.IO.FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option.</returns>
294+
/// <returns>An unshared System.IO.FileStream that provides access to the specified file, with the specified mode and access.</returns>
297295
public static FileStream Open(string path, FileMode mode, FileAccess access)
298296
{
299297
return _fileService.Open(path, mode, access);
@@ -453,7 +451,7 @@ public static void Replace(string sourceFileName, string destinationFileName, st
453451
/// Sets the specified System.IO.FileAttributes of the file on the specified path.
454452
/// </summary>
455453
/// <param name="path">The path to the file.</param>
456-
/// <param name="fileAttributes"A bitwise combination of the enumeration values.></param>
454+
/// <param name="fileAttributes">A bitwise combination of the enumeration values.</param>
457455
public static void SetAttributes(string path, FileAttributes fileAttributes)
458456
{
459457
_fileService.SetAttributes(path, fileAttributes);

src/Abstract.FileSystem/FileService.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ public DateTime GetLastWriteTimeUtc(string path)
244244
}
245245

246246
/// <summary>
247-
/// /// <summary>
248247
/// Moves a specified file to a new location, providing the option to specify a new file name.
249248
/// </summary>
250249
/// <param name="sourceFileName">The name of the file to move. Can include a relative or absolute path.</param>
@@ -255,13 +254,12 @@ public void Move(string sourceFileName, string destFileName)
255254
}
256255

257256
/// <summary>
258-
/// Opens a System.IO.FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option.
257+
/// Opens a System.IO.FileStream on the specified path, with the specified mode and access.
259258
/// </summary>
260259
/// <param name="path">The file to open.</param>
261260
/// <param name="mode">A System.IO.FileMode value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.</param>
262261
/// <param name="access">A System.IO.FileAccess value that specifies the operations that can be performed on the file.</param>
263-
/// <param name="share">A System.IO.FileShare value specifying the type of access other threads have to the file.</param>
264-
/// <returns>A System.IO.FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option.</returns>
262+
/// <returns>An unshared System.IO.FileStream that provides access to the specified file, with the specified mode and access.</returns>
265263
public FileStream Open(string path, FileMode mode, FileAccess access)
266264
{
267265
return System.IO.File.Open(path, mode, access);
@@ -421,7 +419,7 @@ public void Replace(string sourceFileName, string destinationFileName, string de
421419
/// Sets the specified System.IO.FileAttributes of the file on the specified path.
422420
/// </summary>
423421
/// <param name="path">The path to the file.</param>
424-
/// <param name="fileAttributes"A bitwise combination of the enumeration values.></param>
422+
/// <param name="fileAttributes">A bitwise combination of the enumeration values.></param>
425423
public void SetAttributes(string path, FileAttributes fileAttributes)
426424
{
427425
System.IO.File.SetAttributes(path, fileAttributes);

src/Abstract.FileSystem/IFileService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ public interface IFileService
183183
/// <param name="sourceFileName">The name of the file to move. Can include a relative or absolute path.</param>
184184
/// <param name="destFileName">The new path and name for the file.</param>
185185
void Move(string sourceFileName, string destFileName);
186-
186+
187187
/// <summary>
188188
/// Opens a System.IO.FileStream on the specified path, with the specified mode and access.
189189
/// </summary>
190190
/// <param name="path">The file to open.</param>
191-
/// <param name="mode">A System.IO.FileMode value that specifies whether a file is created if one doesnot exist, and determines whether the contents of existing files are retained or overwritten.</param>
191+
/// <param name="mode">A System.IO.FileMode value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.</param>
192192
/// <param name="access">A System.IO.FileAccess value that specifies the operations that can be performed on the file.</param>
193193
/// <returns>An unshared System.IO.FileStream that provides access to the specified file, with the specified mode and access.</returns>
194194
FileStream Open(string path, FileMode mode, FileAccess access);
@@ -305,7 +305,7 @@ public interface IFileService
305305
/// Sets the specified System.IO.FileAttributes of the file on the specified path.
306306
/// </summary>
307307
/// <param name="path">The path to the file.</param>
308-
/// <param name="fileAttributes"A bitwise combination of the enumeration values.></param>
308+
/// <param name="fileAttributes">A bitwise combination of the enumeration values.></param>
309309
void SetAttributes(string path, FileAttributes fileAttributes);
310310

311311
/// <summary>

src/Abstract.FileSystem/Path.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static void Setup(Func<IPathService> service)
7272
/// null or an empty string (""), the path information is returned unmodified. If
7373
/// extension is null, the returned string contains the specified path with its extension
7474
/// removed. If path has no extension, and extension is not null, the returned path
75-
/// string contains extension appended to the end of path.
75+
/// string contains extension appended to the end of path.</returns>
7676
public static string ChangeExtension(string path, string extension)
7777
{
7878
return _pathService.ChangeExtension(path, extension);

src/Abstract.FileSystem/PathService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class PathService : IPathService
1414
/// null or an empty string (""), the path information is returned unmodified. If
1515
/// extension is null, the returned string contains the specified path with its extension
1616
/// removed. If path has no extension, and extension is not null, the returned path
17-
/// string contains extension appended to the end of path.
17+
/// string contains extension appended to the end of path.</returns>
1818
public string ChangeExtension(string path, string extension)
1919
{
2020
return System.IO.Path.ChangeExtension(path, extension);

src/Abstract.FileSystem/SystemPath.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
namespace Abstract.FileSystem
77
{
8+
/// <summary>
9+
///
10+
/// </summary>
811
[Serializable]
912
[DebuggerDisplay("{" + nameof(_path) + "}")]
1013
public class SystemPath

0 commit comments

Comments
 (0)