sync databse table based on current directory data without losign previous values
Lele Gaifax
lele at metapensiero.it
Wed Mar 6 05:27:30 EST 2013
Νίκος Γκρ33κ <nikos.gr33k at gmail.com> writes:
> Its about the following line of code:
>
> current_fullpaths.add( os.path.join(root, files) )
I'm sorry, typo on my part.
That should have been "fullpath", not "file" (and neither "files" as you
wrongly reported back!):
# Compute a set of current fullpaths
current_fullpaths = set()
for root, dirs, files in os.walk(path):
for fullpath in files:
current_fullpaths.add(os.path.join(root, fullpath))
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it | -- Fortunato Depero, 1929.
More information about the Python-list
mailing list