Renter stores files in top level directory
the .sia files uploaded through the renter get stored in the top level directory, which causes clutter against the .json and .log files that share the same folder. They should get their own directory.
MR's to Submit
MR's should be submitted against unstable
- Update to store files not in top level directory
- Compatibility code to move all files currently on network to new directory
TDOD
-
Testing -
Update Testnode code to have upload,download,and files directories -
Make sure to test that the sia paths are set as expected and that all the localfiles and siafiles are present
-
PROPOSAL
- Update upload code so that files are not stored in the top level directory of the Renter
- Create a
renterFiles
variable with a value offiles
- Whenever a file or folder is uploaded, add
renterFiles
as a prefix to thesiapath
- Create a
- Compatibility code
- create a new method for updating the renter persist version
- this method would loop over all the renter files and rename their
siapaths
to have therenterFiles
prefix
-
Siapaths
-
siapaths
should remain unchanged. There should not be any difference to the user when they are looking at files andsiapaths
- This could be done by updating any
siapath
code to also remove therenterFiles
prefix along with therenterDir
-
- Testing
- The
siatest
package would need to be updated to include afiles/
directory for thetestnode
- Testing would need to cover uploads and persistence version upgrade
- Upload testing would check to make sure that a
.sia
file was uploaded torenter/files
and that thesiapath
doesn't includefiles/
- The persistence test would need to check to make sure that previously uploaded files are moved to
renter/files
and no longer are inrenter/
, but they still have the samesiapath
- The
Edited by Matthew Sevey