MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / copyFileToLocal

Method copyFileToLocal

src/astroprint/plugin/services/files.py:85–91  ·  view source on GitHub ↗
(self, data, sendResponse)

Source from the content-addressed store, hash-verified

83 sendResponse({'error': 'local file already exists' },True)
84
85 def copyFileToLocal(self, data, sendResponse):
86
87 copiedFilename = externalDriveManager().copyFileToLocal(data['origin'],data['destination'],data['observerId'])
88 if copiedFilename:
89 sendResponse({'target_filename': copiedFilename})
90 else:
91 sendResponse({'error': 'copy print file to local folder failed' },True)
92
93
94 def getFileBrowsingExtensions(self, sendResponse):

Callers 1

copyFileToLocalFunction · 0.45

Calls 1

externalDriveManagerFunction · 0.90

Tested by

no test coverage detected