Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Nov 26, 2016
1 parent e0eb7ee commit 00a740b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ projects_fs = open_fs('~/projects')
print(count_python_loc(projects_fs))
```

The line ``project_fs = open_fs('~/projects')`` opens an FS object that maps to the ``projects`` directory in your home folder. That object is used by ``counts_python_loc`` when counting lines of code.
The line ``project_fs = open_fs('~/projects')`` opens an FS object that maps to the ``projects`` directory in your home folder. That object is used by ``count_python_loc`` when counting lines of code.

If we later want to count the lines of Python code in a zip file, then we can make the following change::

```python
projects_fs = open_fs('zip://projects.zip')
```

This works because PyFileystem provides a simple consistent interface to anything that resembles a collection of files and directories.
No changes to ``count_python_loc`` are required, because PyFileystem provides a simple consistent interface to anything that resembles a collection of files and directories, including archives and network filesystems.

0 comments on commit 00a740b

Please sign in to comment.