New submission from Arshdeep <arshdeepbal1...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38196>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to