Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sam ls: fixed --script option when displaying recursive items #577

Merged
merged 8 commits into from
Aug 26, 2016

Conversation

cchampet
Copy link
Member

Fix #571

Clement Champetier added 2 commits August 18, 2016 10:56
No need to compare 'args.level' to 0: if it is the case, 'level' should
be equal to 0 too.
Clement Champetier added 4 commits August 18, 2016 11:25
* If no user input, will browse in the current working directory.
* Us '.' as current folder instead of the absoulte path to the working
directory.
…an abs

* Use os.path.isabs
* Reorder the if statement.
We use os.path.join method after this code to concatenate the filepath
and the filename.
@@ -184,16 +183,16 @@ def _printItem(self, item, args, level):
filePath = colored.red(os.path.join(filePath, filename))
filePath += ' \t'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should move into the toPrint

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. 3f5ef2f

Clement Champetier added 2 commits August 19, 2016 12:18
* No need to do all this stuff.
* getFolder() contains the path as given by the user. So if it's
absolute, it will stay absolute and if it's relative it will stay
relative.
@cchampet cchampet merged commit 9ce146f into tuttleofx:develop Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants