refactor uploadDirectory, only use one map
refactor uploadDirectory, only use one map

NebulousLabs/Sia-UI,NebulousLabs/New-Sia-UI,NebulousLabs/New-Sia-UI,NebulousLabs/New-Sia-UI,NebulousLabs/Sia-UI,NebulousLabs/Sia-UI