Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

Commit

Permalink
Fixed a bug with file processing that looks like "/.cytherize"
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpandolfi committed Dec 12, 2016
1 parent bb055c9 commit a4d661e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cyther/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def _has_ext(fragment):


def _get_ext(fragment):
return os.path.splitext(fragment)[EXTENSION]
if fragment[0] == '.':
return os.path.splitext(fragment)[NAME]
else:
return os.path.splitext(fragment)[EXTENSION]


def _has_name(fragment):
Expand Down Expand Up @@ -101,7 +104,8 @@ def _isfile(path, override=None):
raise ValueError(PATH_HAS_EXT.format(path))
result = False
else:
result = bool(_get_ext(path))
extension = _get_ext(path)
result = bool(extension)

return result

Expand Down

0 comments on commit a4d661e

Please sign in to comment.