Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added chaining example.
  • Loading branch information
vector-man authored Jun 12, 2023
1 parent 860b900 commit 8e83cd7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# ObjectivePaths
ObjectivePaths is a wrapper for .NET filesystem operations. View Demo project to see an example.

## Examples:
// Chaining:
// Create FileSystemService
var fileSystemService = new LocalFileSystemService(new FileSystem());

// Get a file called "C.txt" in sub directory "A\B" of someAbsolutePath:
var directory = fileSystemService.GetDirectory(someAbsolutePath);
var fileTwoLevelsDown = directory.GetDirectory("A").GetDirectry("B").GetFile("C.txt");


Contributors: please review LICENSE.txt before using the library or submitting a contribution. All Subissions must be released under the MIT License (https://opensource.org/license/mit/) in order to be compatible with the project's dual-license model.

Copyright (c) 2023 Michael D. Corbett (Github: @vector-man) .

0 comments on commit 8e83cd7

Please sign in to comment.