Eric Callahan
c0c34ea045
file_manager: fix object processing option name
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 14:08:41 -05:00
Eric Callahan
cfa5f4a432
file_manager: don't emit events when a node is processing metadata
...
When a folder is copied processing can take several minutes, depending on the size and number of gcode files in the
path. Suppress all file events on a node until processing
is complete.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
9dd0797f49
file_manager: ignore duplicate "create_file" notifications for gcode files
...
The the cancel object post processor results in an additional
"create_file" notification when the old file is replaced.
Track previous "create_file" notifications for valid gcode
files so the dups can be suppressed.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
b7c64443db
file_manager: refactor metadata processing
...
When destructively iterating over pending metdata requests
don't pop the pending item until metadata processing is
complete. If a call to `parse_metadata()` has a request
pending, return the asyncio Event associated with that
request.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-12-05 06:45:06 -05:00
Eric Callahan
88137d5898
file_manager: add option to enable object postprocessing
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com
2021-12-05 06:45:06 -05:00
Eric Callahan
28e88b1363
job_queue: dont attempt to start a print when empty
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 19:53:57 -05:00
Eric Callahan
784b8b9b18
file_manager: attempt to start gcode uploads prior to queueing
...
Only attempt to queue the upload if the job failed to start.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-26 19:46:59 -05:00
Eric Callahan
7a8aeae673
file_manager: use the job queue to start gcode uploads
...
If a print cannot be started then it will be queued.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-11-12 10:11:39 -05:00
Eric Callahan
b55b21921a
file_manager: report additional info in response to get_directory
...
Include the root's name and its permissions.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-30 16:49:41 -04:00
Eric Callahan
e9b06472c1
file_manager: minor refactoring in _list_directory method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-30 16:46:40 -04:00
Eric Callahan
4e262dfa14
file_manager: remove redundant code in delete_file method
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-30 07:34:40 -04:00
Eric Callahan
538c68fc8b
file_manager: normalize path requests
...
This resolves an issue where a path is containter two slashes as a separator reports as outside of the root.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-30 07:28:55 -04:00
Eric Callahan
de8c0fc871
file_manager: fix inotify symlink handling
...
When a symbolic link is created there is no completion event, so immediately fire the notification.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-27 11:24:57 -04:00
Eric Callahan
e33962fdd4
file_manager: check write permissions for uploads
...
If the specified path is a symbolic link do not proceed with the upload, raise an exception.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-27 08:55:44 -04:00
Eric Callahan
734f295822
file_manager: allow registration of full access directories
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-27 08:55:44 -04:00
Eric Callahan
4c42b8d072
file_manager: report file and directory permissions
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
fix
2021-10-27 08:55:19 -04:00
Eric Callahan
070e03d741
file_manager: Don't filter inotify events on the gcodes root
...
Broadcast events for all files and let clients determine
what should be shown.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-10 11:33:33 -04:00
Eric Callahan
7f1c327f02
file_manager: hidden folder bugfix
...
Since inotify supports hidden folders we shouldn't skip them when scanning for nodes.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-10-10 11:04:59 -04:00
Eric Callahan
776e0d6c90
file_manager: strip leading slashes supplied in the upload path argument
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-09-14 14:43:00 -04:00
Eric Callahan
13a85fe9e0
file_manager: replace references to ioloop with eventloop
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-12 06:16:18 -04:00
Arksine
261fbbc867
file_manager: move modules to its own package
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-07-06 19:25:10 -04:00