cedefbc42b
Re-wrote everything to be defined in Classes, better logging & exec
...
Abstracted remote and local filesystems into a System class.
Transporter does the file transfering, simplified this code. Removes a
lot of the error handling that was there in replacement of state that
will be more resilient, predictable and less error-prone.
2023-08-25 19:39:07 +02:00
12f6d1bf3f
Error when moving files without parent folders
...
This will check if file ends with a know video extension, if so
use os.makedirs to create a folder at destination and update rsync
destination with this folder.
2023-08-22 20:21:33 +02:00
7dcbd60de4
All log messages before moving a file should be debug
2022-12-10 11:59:33 +01:00
0f5f050448
Compute, log and save to file estimated & actual transfer time
2022-11-28 00:49:13 +01:00
6ff33dcef1
Use delugeClient-kevin package instead of exec in os thread
2022-11-28 00:48:24 +01:00
23d7b7513f
Calculate, log & save estimated & actual transfer speed
2022-11-28 00:43:04 +01:00
a11567dcf6
Moved log message for when we move an item to below the Already exists skipping message. If the file already exists we dont print Moving message when its acctually not going to be moved.
2019-05-01 21:17:55 +02:00
1846d15cac
Changed elastic param from file to path to be more consistent with elastic fields.
2019-05-01 21:16:45 +02:00
75faa5c949
Fixed syntax error. Missing wrapping dict
2019-05-01 12:16:09 +02:00
0d394b8d1d
All logs that have filenames or paths now also supply these as args to the logger. They then receive their own field mapping in the document sent to elastic.
2019-05-01 12:13:59 +02:00
8030cf5b36
Safer parameter strings for rsync command. Wrap filename in qoutes.
2019-05-01 10:50:28 +02:00
c3a23ef344
Fixed syntax error at if test. Incorrect closing paranthese position
2019-05-01 00:28:11 +02:00
3c976b398f
We collect files to move. Some cases another transfer can start and finish before this instance gets to the file. To not transfere duplicates we now check if the file exists with getFiles before we start a transfere. If its at the remote path we simply continue to the next file.
2019-04-30 23:52:49 +02:00
206606ca1e
Moved function for fetching config into separate utils file.
2019-04-30 19:23:04 +02:00
0a88e3b376
Changed severity levels on some logs
2019-04-30 00:22:21 +02:00
8c67226823
Log-log-log! If files are found or not we output two different logs. Also info log every time we dont find anything.
2019-04-29 22:39:20 +02:00
524cc82020
Replaced all prints with logger messages. Also added more info logging of what files are found
2019-04-29 22:26:23 +02:00
9c95395827
Logg deluge stdout to log file on remove and fixed issue where the name to delete from deluge was the absolute path not just the filename.
2019-04-29 22:13:40 +02:00
4e5f5e5172
Renamed case-sensitive file
2019-04-29 22:03:35 +02:00