Commit graph

275 commits

Author SHA1 Message Date
ChristianVisintin
99db7b6d8e Fixed FsEntry fmt 2020-12-12 17:50:01 +01:00
ChristianVisintin
1fb614642c Added 'E' to keybindings; behaves as <DEL> (added because some keyboards don't have <DEL> 2020-12-12 17:44:04 +01:00
ChristianVisintin
3b33c55d97 Removed redundant code for fsEntry fmt 2020-12-12 17:36:39 +01:00
ChristianVisintin
5aea1d286b Code optimizations 2020-12-12 17:34:15 +01:00
ChristianVisintin
3dcf33ebe2 Optimized code, with the newest fsentry methods 2020-12-12 17:33:15 +01:00
ChristianVisintin
912da10696 When downloading symlinks, the filename and its size is now known (thanks to the new symlinks management) 2020-12-12 17:32:49 +01:00
ChristianVisintin
8281a840a7 Optimizing FsEntry and relatd stuff 2020-12-12 17:03:31 +01:00
ChristianVisintin
57e83a63dd Optimized code for fsentry 2020-12-12 16:32:21 +01:00
ChristianVisintin
f73e43304e FsEntry::*::symlink is now a Option<Box<FsEntry>>; this improved symlinks, which gave errors some times 2020-12-12 16:26:03 +01:00
ChristianVisintin
55bda874f0 Optimized code and performance using clippy 2020-12-12 12:14:51 +01:00
ChristianVisintin
c9c35d027b Removed unused import 2020-12-10 12:13:45 +01:00
ChristianVisintin
11475b64ea Removed ctrl to 'Q' 2020-12-10 12:06:32 +01:00
ChristianVisintin
53249c8bc5 Break on recv/send errors 2020-12-10 11:52:00 +01:00
ChristianVisintin
843c5ab6d0 Break on recv/send errors 2020-12-10 11:51:49 +01:00
ChristianVisintin
66f17c93c2 Finalize get stream for FTP 2020-12-10 11:27:00 +01:00
ChristianVisintin
040b684398 Typo in windows version 2020-12-10 11:04:53 +01:00
ChristianVisintin
7e6044a41b Removed CTRL key; just press associated key to perform command 2020-12-10 10:28:40 +01:00
ChristianVisintin
145b778ff3 Added FileInfo popup ('I') 2020-12-10 10:28:13 +01:00
ChristianVisintin
ca46c872cf fmt_pex is now a method 2020-12-10 10:05:30 +01:00
ChristianVisintin
98e3866447 Elide paths in explorer tabs if they are too long 2020-12-10 09:22:58 +01:00
ChristianVisintin
95ab3daa86 Elide file names longer than 24 2020-12-10 08:44:35 +01:00
ChristianVisintin
93977cc714 Ignore capital letters when sorting files 2020-12-09 16:35:16 +01:00
ChristianVisintin
b3537afd2e Check value in set_progress 2020-12-09 16:29:35 +01:00
ChristianVisintin
5a96091258 Fixed help 2020-12-09 16:19:27 +01:00
ChristianVisintin
8f3e416144 Ask password before cleaning screen 2020-12-09 16:17:11 +01:00
ChristianVisintin
a2a7478f5b Published new rust-ftp as ftp4 2020-12-06 22:56:40 +01:00
ChristianVisintin
e9961b19cc Wtf? %M:%H format? 2020-12-06 21:24:53 +01:00
ChristianVisintin
7021331867 Removed group from explorer 2020-12-06 21:24:34 +01:00
ChristianVisintin
5e0b130123 Improved sftp and I/O in general: set buffer size to 65536 2020-12-06 20:59:45 +01:00
ChristianVisintin
0ed6bd30f1 Fixed help popup 2020-12-06 18:06:42 +01:00
ChristianVisintin
2b51f3c79a Fixed windows scp test 2020-12-06 11:15:08 +01:00
ChristianVisintin
148bff5117 Fixed windows host test 2020-12-06 11:13:21 +01:00
ChristianVisintin
1783a0fc35 Fixed windows host test 2020-12-06 11:12:36 +01:00
ChristianVisintin
357c0c9189 Fixed mouse captures issue with the terminal 2020-12-06 10:55:15 +01:00
ChristianVisintin
e956327b47 Fixed scp test 2020-12-06 10:49:32 +01:00
ChristianVisintin
e015f558c9 lol, removed blinking texts (that I couldn't see on my terminal) 2020-12-06 10:48:06 +01:00
ChristianVisintin
be60ae1705 Enlarged yes/no dialog 2020-12-06 10:43:41 +01:00
ChristianVisintin
4017739dbb Don't c align text in yes/no dialog 2020-12-06 10:39:39 +01:00
ChristianVisintin
d61366bed7 Fixed error type for ftp 2020-12-06 10:37:44 +01:00
ChristianVisintin
8e8247c4a9 Multi-line popups; wrap texts and align popup texts to the center 2020-12-05 23:07:23 +01:00
ChristianVisintin
79fadf64de Align popup texts to center 2020-12-05 22:56:09 +01:00
ChristianVisintin
ce56c227db Don't // Check if file_name is '.' or '..' 2020-12-05 21:11:03 +01:00
ChristianVisintin
af7bd17422 Use bufreader and bufwriter to optimize performance; but sftp is slow anyway 2020-12-05 21:10:45 +01:00
ChristianVisintin
bcaaab3c21 Fixed underflow 2020-12-05 21:09:07 +01:00
ChristianVisintin
73fe2649be Unset LANG in SCP; provides timestamps for files 2020-12-05 19:47:07 +01:00
ChristianVisintin
a0b8af8bf1 Fixed progress bar optimizations (before did nothing) 2020-12-05 19:36:46 +01:00
ChristianVisintin
7e5e5d2df2 Report errors as alerts 2020-12-05 19:36:33 +01:00
ChristianVisintin
d73d56576c Keep exlorer entry index (if possible); reset only when changing directory 2020-12-05 18:31:41 +01:00
ChristianVisintin
ae2224618d Less pedantic parse_list/parse_ls methods. Invalid times are converted to UNIX_EPOCH 0 2020-12-05 17:58:21 +01:00
ChristianVisintin
26006ee383 Fixed scp transfer stat method 2020-12-05 17:45:30 +01:00
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