rashevskyv / dbi

Author is duckbill
2.19k stars 93 forks source link

[Feature request] FTP port 6000 folders match MTP folders #258

Open Clearmist opened 1 year ago

Clearmist commented 1 year ago

The port 6000 FTP connection has only two of the nine available MTP directories. FTP-соединение через порт 6000 имеет только два из девяти доступных каталогов MTP.

I suggest that the port 6000 FTP connection and the MTP connection be given the same available directories. Я предлагаю, чтобы FTP-соединение порта 6000 и соединение MTP предоставляли одни и те же доступные каталоги.

request

The MTP folder shortcuts are so helpful, but some users may not have access to a USB cable and must use the FTP connection. In addition, the MTP connection uses the WUDFWpdMtp (10.0.22621) driver which is not understood by any libusb based libraries I've tested which means I've not been able to write additional software for interacting with the MTP connection.

Ярлыки папок MTP очень полезны, но у некоторых пользователей может не быть доступа к USB-кабелю, и они должны использовать FTP-соединение. Кроме того, соединение MTP использует драйвер WUDFWpdMtp (10.0.22621), который не понимается ни одной протестированной мной библиотекой на основе libusb, что означает, что я не смог написать дополнительное программное обеспечение для взаимодействия с соединением MTP.

ghost commented 1 year ago

Порт 6000 используется исключительно для установки. Другие папки туда не добавить. В принципе их можно поднять на других портах, либо переделать всю систему и всё сделать на одном порту. Я подумаю. Мысль правильная.

Что касается МТР - NSCB как-то использует его для манипуляций с установленными играми и сейвами. Значит можно.

Clearmist commented 1 year ago

Would it also be possible to add a custom FTP command that would return the amount of used disk space and available disk space on the SD card?

Можно ли также добавить пользовательскую FTP-команду, которая будет возвращать объем используемого дискового пространства и доступного дискового пространства на SD-карте?

ghost commented 1 year ago

Начиная с версии 610:

214-DBI FTP server accepts following SITE commands: SITE HELP SITE FREESPACE SD SITE FREESPACE NAND SITE TOTALSPACE SD SITE TOTALSPACE NAND 214 End

Clearmist commented 1 year ago

Thank you for adding those custom commands! I look forward to the release of version 610. Спасибо за добавление этих пользовательских команд! Жду выхода версии 610.

VykosX commented 1 year ago

Please, it would be amazing to be able to manipulate save files directly through FTP, it would save so much time being able to transfer save files straight to the switch without then needing to use a save manager to import them afterwards. The main issue with MTP is you can't use it while the switch is docked, so having to undock it and connect a cable each time is a major hassle. Please add save management support through FTP!

ghost commented 1 year ago

Уже сейчас можно работать с отдельными сейвами через ftp. Доступ открывается из карточки игры в контекстном меню сейва.

VykosX commented 1 year ago

How is that possible? When connecting to FTP over port 5000 I can only access the SDCard and over port 6000 I can only access the SD and NAND installation folders. There doesn't appear to be a share for Save files like there is with MTP. I'm not sure I understand how to access it if the feature is already available. Also, would it be possible to add a config option to change the default FTP ports? As it is, they conflict with the sys-ftpd-light system module, and the socket fails to bind when launching, preventing you from accessing either server. I'd like to keep the module just for SDCard browsing since it's active at all times and boots with the switch, but have save management through FTP via DBI if possible. Thanks a ton!