[New-bugs-announce] [issue38196] Bug fix in folderstats module

Arshdeep report at bugs.python.org
Tue Sep 17 06:05:42 EDT 2019


New submission from Arshdeep <arshdeepbal1996 at gmail.com>:

Issue :
While using folderstats module in python3, the records are cascaded from all previous runs of folderstats for that specific session i.e. once the folderstats is run, it will provide the dataframe with all the files/directories in that directory, but if we run it another time, the new data is appended to the old data.

To overcome this issue you can make a minor change in the folderstats module and import it :
init.py : [attached]
In method folderstats() edit the below line to make an addition i.e initialise items=list() so as the data is not appended to the previous list :

idx, items, foldersize, num_files = _recursive_folderstats(
folderpath,
hash_name=hash_name,items=list()
ignore_hidden=ignore_hidden,
verbose=verbose)

----------
components: Library (Lib)
messages: 352626
nosy: arshdeepbal
priority: normal
severity: normal
status: open
title: Bug fix in folderstats module
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38196>
_______________________________________


More information about the New-bugs-announce mailing list