Skip to content

Commit

Permalink
Fixed issue with file_path being over-written with base_name
Browse files Browse the repository at this point in the history
  • Loading branch information
nareddyt committed Oct 22, 2017
1 parent c3971eb commit 8dd0472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mosspy/moss.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def getLanguages(self):
def uploadFile(self, s, file_path, display_name, file_id):
if display_name is None:
# If no display name added by user, default to file path
display_name = os.path.basename(file_path).replace(" ", "_")
display_name = file_path.replace(" ", "_")

size = os.path.getsize(file_path)
message = "file {0} {1} {2} {3}\n".format(
Expand Down

0 comments on commit 8dd0472

Please sign in to comment.