Skip to content

Commit

Permalink
Convert attribute name to make its use clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Jun 13, 2019
1 parent 9931ae5 commit 2fcd9ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metsrw/fsentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __init__(
self.path = path
if label is None and path is not None:
label = os.path.basename(path)
self.fileid = fileid
self._fileid = fileid
self.label = label
self.use = use
self.type = six.text_type(type)
Expand Down Expand Up @@ -212,8 +212,8 @@ def file_id(self):
"No FILEID: File %s does not have file_uuid set" % self.path
)
if self.is_aip:
if self.fileid:
return self.fileid
if self._fileid:
return self._fileid
return os.path.splitext(os.path.basename(self.path))[0]
return utils.FILE_ID_PREFIX + self.file_uuid

Expand Down

0 comments on commit 2fcd9ee

Please sign in to comment.