hi all, I have file as example called xxx.js in my...
# sdf
d
hi all, I have file as example called xxx.js in my vscode ( local ) i initially uploaded it using sdf to filecabinet. Then i rename it to XXX.js in vscode and filecabinet, then i upload again from vscode, but in filecabinet 2 files are created, xxx.js and XXX.js. Anybody experience this before, how to resolve this ? i want to have only 1 file in filecabinet which is the same as what i have in vs code VSCode FileCabinet xxx.js xxx.js rename in vscode and reupload XXX.js XXX.js xxx.js
m
SDF doesn't keep track of renamed files. If you change the name locally and want it to overwrite the original file in the file cabinet, you'll need to change the name in the file cabinet to match.
a
or in this case since you're already passed that point ... just delete xxx.js from the FC - this seems like a pretty obvious solution, no?
💯 1
m
If you just upload the new file, you have to update the script record to point to the new file, then delete the old file. Renaming the file in the file cabinet is a single step. The script record is automatically updated with the new name. Use SDF to upload the new file over the top of the original, newly renamed, file.