Commit graph

275 commits

Author SHA1 Message Date
ChristianVisintin
b0ce34b9f8 Scp: use oneshot channels instead of ptys (more stable; more reliable and overall works) 2020-12-05 17:37:19 +01:00
ChristianVisintin
28a4bed8fa Ctrl+Q quit; <esc> just disconnect 2020-12-05 17:04:39 +01:00
ChristianVisintin
1f4998b1c1 Removed header from filetransfer activity 2020-12-05 16:56:11 +01:00
ChristianVisintin
9bb19abd0c Write current path on explorer tabs 2020-12-05 16:32:16 +01:00
ChristianVisintin
1ece4eabfd Try authentication with user_agent if possible 2020-12-05 15:50:26 +01:00
ChristianVisintin
2e7acd4aba Added scp:// syntax to protocol 2020-12-05 15:37:34 +01:00
ChristianVisintin
a7c2de0669 Added Scp file transfer to ui 2020-12-05 15:21:01 +01:00
ChristianVisintin
2287fed422 SCP file transfer mod 2020-12-05 15:10:04 +01:00
ChristianVisintin
b45440586b FsFile as argument for both recv_file and send_file 2020-12-05 14:52:53 +01:00
ChristianVisintin
54c02cd4e2 on_sent and on_recv methods for file transfer to finalize streams 2020-12-04 18:25:59 +01:00
ChristianVisintin
af6d6e0039 Fixed ftp write 2020-12-04 14:47:56 +01:00
ChristianVisintin
82a19dd089 Welcome messages 2020-12-04 14:00:23 +01:00
ChristianVisintin
3112f999e3 Rust-ftp finally with tls-native :D 2020-12-03 21:31:51 +01:00
ChristianVisintin
a63af295de Fixed ui auth 2020-12-03 17:23:36 +01:00
ChristianVisintin
f351ee1aea Ftptransfer tests 2020-12-03 17:10:48 +01:00
ChristianVisintin
31f33dff48 Fixed sftp tests 2020-12-03 14:53:24 +01:00
ChristianVisintin
4e745d0cb6 Fixed lstime_to_systime 2020-12-03 14:53:08 +01:00
ChristianVisintin
33e64d1b43 FTP transfer 2020-12-03 14:45:17 +01:00
ChristianVisintin
7e09f5c7fa Filetransfer all mutable 2020-12-03 14:44:50 +01:00
ChristianVisintin
175acd9f5b Wait, file_size in recv is completely useless 2020-12-03 13:43:40 +01:00
ChristianVisintin
f8be6b7fac Changed FileReadonly with Permissionn error 2020-12-03 12:32:55 +01:00
ChristianVisintin
be41314a28 ftp transfer: mkdir, remove rename 2020-12-03 12:22:44 +01:00
ChristianVisintin
acc4595ff8 parse_ftp_line test 2020-12-03 08:33:15 +01:00
ChristianVisintin
a328a4f751 Added to FileTransferProtocol bool secure flag to Ftp 2020-12-03 08:16:07 +01:00
ChristianVisintin
9b26b5b99d ftp transfer, brough parse_list_line as a method of the struct 2020-12-03 08:04:40 +01:00
ChristianVisintin
129c168989 implemented list_dir for ftp file transfer 2020-12-02 22:45:24 +01:00
ChristianVisintin
8e7ea924d1 lstime_to_systime 2020-12-02 22:44:50 +01:00
ChristianVisintin
8dc5995458 Working on ls time parser 2020-12-02 17:00:52 +01:00
ChristianVisintin
5d4b255e26 Working on ftp transfer 2020-12-01 17:40:51 +01:00
ChristianVisintin
7151b4c094 Added lazy_static and regex 2020-12-01 17:10:13 +01:00
ChristianVisintin
231f83810c FileTransferActivity: ftp is now allowed 2020-12-01 16:43:03 +01:00
ChristianVisintin
ca797558d7 Allow FTPS/FTP; added secure param 2020-12-01 16:41:15 +01:00
ChristianVisintin
c19416abdd Layout error 50% width 2020-12-01 16:03:48 +01:00
ChristianVisintin
34752f0e47 Format ssh error 2020-12-01 16:03:35 +01:00
ChristianVisintin
71dbe7ea85 FileTransferError with message and code 2020-12-01 15:57:31 +01:00
ChristianVisintin
cd3ffae285 fmt 2020-12-01 15:14:49 +01:00
ChristianVisintin
3944367fb3 Added FTP/FTPs options 2020-12-01 15:14:33 +01:00
ChristianVisintin
bc17c9bbc1 Split filetransfer_activity into different files 2020-12-01 14:59:13 +01:00
ChristianVisintin
4510b9c6b9 Wrap log records using textwrap crate 2020-12-01 12:32:33 +01:00
ChristianVisintin
968678503f Password from option 2020-12-01 11:35:26 +01:00
ChristianVisintin
39334f6451 Fmt activity 2020-12-01 11:19:47 +01:00
ChristianVisintin
bfe05ceb07 It is now possible to enter symlinks 2020-12-01 11:12:58 +01:00
ChristianVisintin
1364fd34ed fmt host.rs 2020-12-01 11:09:55 +01:00
ChristianVisintin
02ca8c6046 Stat method for localhost 2020-12-01 11:09:44 +01:00
ChristianVisintin
9b6e1864d8 stat method for file transfers 2020-12-01 10:57:13 +01:00
ChristianVisintin
698db4219c Removed warn about unused log level 2020-11-30 21:02:58 +01:00
ChristianVisintin
4e1928866e Local explorer color changed to Yellow, since barely visible on some terminals (such as windows dos) 2020-11-30 21:01:54 +01:00
ChristianVisintin
5306d6d027 Sort file entries by name 2020-11-30 16:07:13 +01:00
ChristianVisintin
2e1e548dbc -T option is millis, not micros 2020-11-30 15:54:05 +01:00
ChristianVisintin
b5c47b9470 Redraw interface only if needed 2020-11-30 14:38:14 +01:00
ChristianVisintin
015a17d9f7 Fixed help 2020-11-30 14:27:48 +01:00
ChristianVisintin
512f76738e Default ticks to 10ms 2020-11-30 14:20:16 +01:00
ChristianVisintin
6181439e65 UI improvements 2020-11-30 14:20:10 +01:00
ChristianVisintin
c8a2419a4f PageUp/PageDown for explorer TAB 2020-11-30 14:12:19 +01:00
ChristianVisintin
7960776abb code fmt 2020-11-30 14:02:09 +01:00
ChristianVisintin
3e9d77cfac Progress bar: write ETA 2020-11-30 13:50:34 +01:00
ChristianVisintin
3d622b6b68 Write progress bar only if a significant progress has been made (0.5% at least) 2020-11-30 13:33:34 +01:00
ChristianVisintin
a7253e8082 Goto command: support for relative paths 2020-11-30 11:24:14 +01:00
ChristianVisintin
abf2124b09 Fixed log box 2020-11-30 11:17:38 +01:00
ChristianVisintin
6c47f4a426 Enlarged YesNo dialog popup 2020-11-30 10:37:01 +01:00
ChristianVisintin
ee0a5a176f Solved the annoying stuff related to this <https://github.com/rust-lang/rust/issues/59159>. 2020-11-30 08:36:11 +01:00
ChristianVisintin
306deaaa23 Removed test which can't run anymore 2020-11-29 20:56:35 +01:00
ChristianVisintin
f48fdc48dd Fixed recursive recv from remote 2020-11-29 20:52:30 +01:00
ChristianVisintin
9b135200d7 Thanks to latest commit I can finally draw progress bar :D 2020-11-29 20:31:51 +01:00
ChristianVisintin
4430f3133d Filetransfer recv/send returns Std::io::Write and Read now 2020-11-29 20:31:34 +01:00
ChristianVisintin
57a167ef5a Panic on FTP 2020-11-29 17:51:45 +01:00
ChristianVisintin
9098c03886 Usage 2020-11-29 17:50:24 +01:00
ChristianVisintin
5383e55523 Removed FIXME 2020-11-29 17:47:32 +01:00
ChristianVisintin
cd35dac4a5 Many fixes in UI; Help command 2020-11-29 17:46:56 +01:00
ChristianVisintin
28435aaeda Many fixes in UI 2020-11-29 17:05:12 +01:00
ChristianVisintin
9643280ab0 More logs, some improvements 2020-11-29 16:53:04 +01:00
ChristianVisintin
0ebbe40207 Update dir after upload/download 2020-11-29 16:37:25 +01:00
ChristianVisintin
74a49485b6 Simplified change dir and scan dir 2020-11-29 16:35:51 +01:00
ChristianVisintin
585ad19462 Ui fixes 2020-11-29 16:18:55 +01:00
ChristianVisintin
a843a5a0de GOTO for remote 2020-11-29 16:18:50 +01:00
ChristianVisintin
b300f510b8 Disconnect, don't quit on fatal error 2020-11-29 16:18:23 +01:00
ChristianVisintin
07ebf3cd1b Improved color match 2020-11-29 16:18:00 +01:00
ChristianVisintin
015e2b3601 Fixed fmt for fsentry 2020-11-29 16:17:00 +01:00
ChristianVisintin
1ff42ecf13 to_string_lossy().to_string() for users/groups 2020-11-29 15:56:01 +01:00
ChristianVisintin
badbddb240 fmt code 2020-11-29 15:48:57 +01:00
ChristianVisintin
a2492d1442 Draw method 2020-11-29 15:48:44 +01:00
ChristianVisintin
c99d194162 Larger popup 2020-11-29 15:27:07 +01:00
ChristianVisintin
fbf1ec8997 Popup drawing 2020-11-29 15:26:37 +01:00
ChristianVisintin
e3bf4602cc Push file_type to mode 2020-11-29 15:05:21 +01:00
ChristianVisintin
b43bbcfa7d Draw popup area 2020-11-29 15:03:31 +01:00
ChristianVisintin
d5d39b6c3a Draw explorers 2020-11-29 15:01:02 +01:00
ChristianVisintin
8d9eec0750 fmt for FsEntry 2020-11-29 14:55:35 +01:00
ChristianVisintin
074aa0f4a8 fmt_ls for FsEntry 2020-11-29 14:53:47 +01:00
ChristianVisintin
87990d12b5 draw log list 2020-11-29 13:01:12 +01:00
ChristianVisintin
c54cbed866 Restore input mode once download/upload finishes 2020-11-29 12:37:43 +01:00
ChristianVisintin
a69b410ee0 transfer_prog member RFU 2020-11-29 12:36:36 +01:00
ChristianVisintin
840a2685bf Removed progress callback (not a priority atm) 2020-11-29 12:35:51 +01:00
ChristianVisintin
e84e4ab2b1 Draw method reviewed 2020-11-29 11:55:02 +01:00
ChristianVisintin
6dc871e49a Context as Activity member; on_destroy context is released 2020-11-29 11:34:08 +01:00
ChristianVisintin
7e085096c8 Context as Activity member; on_destroy context is released 2020-11-29 11:33:59 +01:00
ChristianVisintin
00c81634ed Context cleanup 2020-11-28 12:32:36 +01:00
ChristianVisintin
c3db372e3b Remote tab input event handler 2020-11-28 12:27:05 +01:00
ChristianVisintin
c337c496b0 Fixed host tests 2020-11-28 12:18:11 +01:00
ChristianVisintin
e49cbbf93b Fixed host tests 2020-11-28 12:13:47 +01:00
ChristianVisintin
418a51dc77 Host warning solved 2020-11-28 12:12:30 +01:00
ChristianVisintin
be18cc426d Dirstack implementation for local 2020-11-28 12:11:59 +01:00
ChristianVisintin
55cf883581 FileExplorer dirstack 2020-11-28 12:05:15 +01:00
ChristianVisintin
1a4ad92146 filetransfer_recv 2020-11-28 12:01:01 +01:00
ChristianVisintin
69ea4b1284 Fixed remove 2020-11-28 11:55:07 +01:00
ChristianVisintin
e037263ead Host: mkdir support for absolute path 2020-11-28 11:53:43 +01:00
ChristianVisintin
e60ebb2648 Progress cb 2020-11-28 11:37:42 +01:00
ChristianVisintin
abcff4cdd2 Upload file (and save as...) 2020-11-28 11:03:46 +01:00
ChristianVisintin
1301967b68 scan_dir is now public 2020-11-28 10:59:12 +01:00
ChristianVisintin
7cba854260 scan_dir is now public 2020-11-28 10:57:55 +01:00
ChristianVisintin
4dc82d2ebb Changed Callback for file transfer; mkdir using path instead of String 2020-11-28 10:49:58 +01:00
ChristianVisintin
4e25e4d7b4 typo 2020-11-27 18:26:04 +01:00
ChristianVisintin
9015481e43 File rename 2020-11-27 18:25:35 +01:00
ChristianVisintin
1557c068d5 rename in filetransfer trait 2020-11-27 18:19:10 +01:00
ChristianVisintin
d63dc2e2c8 CTRL + M (makedir) 2020-11-27 17:16:54 +01:00
ChristianVisintin
64c3d88318 CTRL + M (makedir) 2020-11-27 17:15:59 +01:00
ChristianVisintin
dc7e7b726e CTRL + G (goto directory) 2020-11-27 17:10:00 +01:00
ChristianVisintin
3ddac307c1 Go to parent directory with <BACKSPACE> 2020-11-27 17:01:52 +01:00
ChristianVisintin
58911117bd Ctx before string in input cb 2020-11-27 16:49:33 +01:00
ChristianVisintin
266a9be524 Abort input using <ESC> 2020-11-27 16:47:46 +01:00
ChristianVisintin
6f7f81264a Delete fs entry (local) 2020-11-27 16:47:35 +01:00
ChristianVisintin
8e4314cc6f reload remote dir func 2020-11-27 16:47:22 +01:00
ChristianVisintin
91557a079d Pass context to callbacks 2020-11-27 16:46:56 +01:00
ChristianVisintin
5891644782 fmt error for filetransfer 2020-11-27 16:43:20 +01:00
ChristianVisintin
89ab16e73f windows cfg 2020-11-27 16:37:20 +01:00
ChristianVisintin
ac8cde811d FsEntry as reference in remove method 2020-11-27 16:37:00 +01:00
ChristianVisintin
a135d0b7a7 std::fmt::Display for HostError 2020-11-27 16:17:56 +01:00
ChristianVisintin
6aa63ff07a std::fmt::Display for HostError 2020-11-27 15:33:55 +01:00
ChristianVisintin
c139d3a117 Wrap selected element in auth_activity when at the end of the list; move also with <TAB> 2020-11-26 19:03:39 +01:00
ChristianVisintin
44392fe639 Working on input events for filetransfer activity 2020-11-25 16:58:15 +01:00
ChristianVisintin
4d4b195c75 Fixed callbacks 2020-11-25 16:12:21 +01:00
ChristianVisintin
2e45c8adae fmt 2020-11-25 12:05:36 +01:00
ChristianVisintin
4938613c18 Fixed YesNoDialog 2020-11-25 12:04:47 +01:00
ChristianVisintin
12e5166b4f fmt 2020-11-25 11:27:35 +01:00
ChristianVisintin
2d90eb15af Working on input events for filetransfer activity 2020-11-25 11:22:26 +01:00
ChristianVisintin
4431c70a65 Read one event fn 2020-11-25 10:26:37 +01:00
ChristianVisintin
d8fc95462a Working on filetransfer activity 2020-11-24 22:34:17 +01:00
ChristianVisintin
39bd881468 Deleted ScpProtocol; use FileTransferProtocol 2020-11-24 22:33:35 +01:00
ChristianVisintin
067f5e710a Filetransfer port is u16 2020-11-24 22:14:37 +01:00
ChristianVisintin
d871497a49 Working on main activity (FileTransferActivity) 2020-11-24 22:05:11 +01:00
ChristianVisintin
9eefafde59 Popup (auth activity OK) 2020-11-24 16:28:15 +01:00
ChristianVisintin
38e7fa7664 Input modes 2020-11-24 16:05:40 +01:00
ChristianVisintin
5a0e712237 Header 2020-11-24 15:24:31 +01:00
ChristianVisintin
1f217f7806 Auth activity input fields 2020-11-24 15:13:36 +01:00
ChristianVisintin
18db7f0305 enable/disable raw mode 2020-11-23 16:59:30 +01:00
ChristianVisintin
589adf294f Ask password from prompt 2020-11-22 20:36:53 +01:00
ChristianVisintin
d692cdf28d Too many things to do here... working on activity manager 2020-11-22 15:32:44 +01:00
ChristianVisintin
1d1c723a46 Utils 2020-11-22 14:44:30 +01:00
ChristianVisintin
d26be5984e Removed context tests; don't work on github actions... boring... 2020-11-22 11:47:32 +01:00
ChristianVisintin
6b67493280 Form submit 2020-11-22 11:45:37 +01:00
ChristianVisintin
5eb1ace958 Working on AuthActivity 2020-11-21 21:26:27 +01:00