Hey, I’m trying to do sound play command using discord.js. I mannaged to upload my mp3 file in assets using wget
but I can’t renamed it. When I do mv /app/assets/file name /app/assets/new name.mp3
it
gives me mv: target '/app/assets/bday.mp3' is not a directory
Does your filename contain spaces? If so, you need to wrap the whole name(s) in quotes, like
mv "/app/assets/file name" "/app/assets/new name.mp3"
yes, but when I place them is gives me mv: cannot stat '/app/assets/file name': No such file or directory
You need to use your own file names instead of file name
or new name
…
I know. I’m just giving an example lol
$ mv "/app/assets/8975082c-d595-4694-9b9e-14b5bc2840b6%2FILIAN - CHESTIT ROZHDEN DEN ?%98ли?%8Fн - Че?%81?%82и?%82 ?%80ожден ден 2008.mp3?v=1568458276202" "/app/assets/bday.mp3"
mv: cannot stat '/app/assets/8975082c-d595-4694-9b9e-14b5bc2840b6%2FILIAN - CHESTIT ROZHDEN DEN ?%98ли?%8Fн - Че?%81?%82и?%82 ?%80ожден ден 2008.mp3?v=1568458276202': No such file or directory
here is the input and the error
Probably auto-completion could work. Try typing this in the console (<tab>
means the tab key on your keyboard):
mv "/app/assets/8<tab> /app/assets/bday.mp3
This worked! Thank you!