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

Feature Request: Display files in stash directory #99

Open
this-is-yaash opened this issue Oct 9, 2024 · 6 comments · May be fixed by #104
Open

Feature Request: Display files in stash directory #99

this-is-yaash opened this issue Oct 9, 2024 · 6 comments · May be fixed by #104
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers gssoc-ext Issues labelled only for GSSoC'24 Extended Edition hacktoberfest-accepted hacktoberfest 2024 level1 Issues that are easy to fix!

Comments

@this-is-yaash
Copy link
Collaborator

Add a method ls() inside models.py that displays the files list inside the stash directory when executed.

Example:

from package.models import display
display()

Output:

1. file1
2. file2
3. file3
4. file4
5. file5
6. file6
7. file7
8. file8

Explanation:

  • As you can see the above code, it doesn't explicitly call the ls() function.
  • The feature should execute ls() function when there isn't any arguments passed.

In simple terms,

  • Implement ls() method, that list files inside stash directory in python execution console.
  • It should execute when display() is called without any arguments.
@this-is-yaash this-is-yaash added enhancement New feature or request good first issue Good for newcomers gssoc-ext Issues labelled only for GSSoC'24 Extended Edition level1 Issues that are easy to fix! hacktoberfest-accepted hacktoberfest 2024 labels Oct 9, 2024
@this-is-yaash
Copy link
Collaborator Author

Make sure the assignees, use the development branch(when assigned).

Execute the following command, after forking the repo and initializing local environment.

git fetch origin
git checkout 99-feature-request-display-files-in-stash-directory

@Prakhar29Sharma
Copy link

I would like to work on this issue

@this-is-yaash
Copy link
Collaborator Author

@Prakhar29Sharma please explain on how you are planning to solve this issue?

@Prakhar29Sharma
Copy link

@Prakhar29Sharma please explain on how you are planning to solve this issue?

Will add the ls() method in the models.py. use os package to get to stash dir and list files. print files name in the provided format

@Wahid7852
Copy link
Collaborator

Assigning the issue to you @Prakhar29Sharma. Good Luck!

@Wahid7852
Copy link
Collaborator

You've a time duration of 24 hours to complete this issue since it is a mere level 1 issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers gssoc-ext Issues labelled only for GSSoC'24 Extended Edition hacktoberfest-accepted hacktoberfest 2024 level1 Issues that are easy to fix!
Projects
None yet
3 participants