scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Make Scrcpy save to my location of choice

Open CummingCowGirl opened this issue 2 years ago • 3 comments

I enjoy using Scrcpy for various task on the phone but when I go to copy files from my computer to Scrcpy it defaults to copying them to Downloads even though I chose another folder on my SD card. Is there any way for me to make Scrcpy use the folder I manually choose? Thanks

On Arch linux - fully updated.

CummingCowGirl avatar Feb 18 '23 23:02 CummingCowGirl

When you drag&drop, scrcpy does not have access to the application currently opened, so it has no idea that you are in a file manager in a specific folder.

You can configure the target directory globally: https://github.com/Genymobile/scrcpy#push-file-to-device

rom1v avatar Feb 19 '23 01:02 rom1v

Thanks for the information however I just did scrcpy --push-target=/sdcard/Music/ and it still copied everything Downloads on the internal storage. I even attempted scrcpy --push-target="/sd card/Music/" and it errored out. I have attempted both lowercase and capital SD.

scrcpy --push-target="/SD card/Music/"
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 443.7 MB/s (42151 bytes in 0.000s)
[server] INFO: Device: motorola motorola one 5G ace (Android 11)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 525.89.02
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2400
INFO: Request to push /mnt/Music/A-Ha
INFO: Request to push /mnt/Music/Abba
INFO: Request to push /mnt/Music/Adam Lambert
INFO: Pushing /mnt/Music/A-Ha...
adb: error: failed to copy '/mnt/Music/A-Ha/Ah-Ha Take No Me.aac' to '/SD card/Music/Ah-Ha Take No Me.aac': remote secure_mkdirs failed: Read-only file system
ERROR: "adb push" returned with value 1
ERROR: Failed to push /mnt/Music/A-Ha to /SD card/Music/
INFO: Pushing /mnt/Music/Abba...
adb: error: failed to copy '/mnt/Music/Abba/Abba - 1981 - The Visitors/11 - Should I Laugh Or Cry (Bonus Track).mp3' to '/SD card/Music/Abba - 1981 - The Visitors/11 - Should I Laugh Or Cry (Bonus Track).mp3': remote secure_mkdirs failed: Read-only file system
ERROR: "adb push" returned with value 1
ERROR: Failed to push /mnt/Music/Abba to /SD card/Music/
INFO: Pushing /mnt/Music/Adam Lambert...
adb: error: failed to copy '/mnt/Music/Adam Lambert/Adam Lambert - For Your Entertainment/Adam Lambert - Whataya Want from Me.aac' to '/SD card/Music/Adam Lambert - For Your Entertainment/Adam Lambert - Whataya Want from Me.aac': remote secure_mkdirs failed: Read-only file system
adb: error: failed to read copy response
ERROR: "adb push" returned with value 1
ERROR: Failed to push /mnt/Music/Adam Lambert to /SD card/Music

CummingCowGirl avatar Feb 19 '23 11:02 CummingCowGirl

I just did scrcpy --push-target=/sdcard/Music/ and it still copied everything Downloads on the internal storage

Please post the console output when you drag & drop a file to the scrcpy window.

rom1v avatar Feb 19 '23 11:02 rom1v