-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
a28741f
commit 26aa235
Showing
28 changed files
with
742 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
"""The HFS data stream implementation.""" | ||
|
||
from dfvfs.vfs import data_stream | ||
|
||
|
||
class HFSDataStream(data_stream.DataStream): | ||
"""File system data stream that uses pyfshfs.""" | ||
|
||
def __init__(self, fshfs_data_stream): | ||
"""Initializes the data stream. | ||
Args: | ||
fshfs_data_stream (pyfshfs.data_stream): HFS data stream. | ||
""" | ||
super(HFSDataStream, self).__init__() | ||
self._fshfs_data_stream = fshfs_data_stream | ||
self._name = '' | ||
|
||
if fshfs_data_stream: | ||
self._name = 'rsrc' | ||
|
||
@property | ||
def name(self): | ||
"""str: name.""" | ||
return self._name | ||
|
||
def IsDefault(self): | ||
"""Determines if the data stream is the default (data fork) data stream. | ||
Returns: | ||
bool: True if the data stream is the default (data fork) data stream. | ||
""" | ||
return not self._fshfs_data_stream |
Oops, something went wrong.