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

Bug with file and directory count. #6

Open
jteijema opened this issue Jan 12, 2023 · 5 comments
Open

Bug with file and directory count. #6

jteijema opened this issue Jan 12, 2023 · 5 comments

Comments

@jteijema
Copy link
Contributor

For version 0.5.2 I get this result:

Successfully installed scitree-0.5.2
0 directories, 0 files
README Data Code

while for verison 0.5.1:

Successfully installed scitree-0.5.1
184 directories, 368 files
README Data Code

0.5.3 and 0.5.4 have the same issue. On windows terminal -> powershell.

@jteijema
Copy link
Contributor Author

0 directories , 0 files
README Data Code Figures Serial Data Folder
>>>

The issue is for both the console and the python method.

@jteijema
Copy link
Contributor Author

I can only assume it's 0dc0ef8

@jteijema
Copy link
Contributor Author

Moreover, recognition of git files fails on this system.

image

@jteijema
Copy link
Contributor Author

jteijema commented Jan 12, 2023

Even weirder, same version, same system:

image

Running -g does find the correct amount of files and folders for both cases.

image

@jteijema
Copy link
Contributor Author

>>> gi_matcher = gitignorefile.parse(Path(p, ".gitignore"))
>>> scitree.tree._file_count(p, n_files=0, n_folders=0, mask=gi_matcher, exclude_folders=[".git"])
(34, 6)
>>>

The code itself works.

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

No branches or pull requests

1 participant