예제 #1
0
 def ftp_STOR(self, path):
     host = self.transport.getPeer().host
     if host in CAMERAS and path.endswith('mp4_'):
         log.info("CAMERA {}, motion on".format(host))
         CAMERAS[host]['motion'] = 'on'
         hafactory.doupdate()
     return FTP.ftp_STOR(self, path)
예제 #2
0
 def ftp_STOR(self, path):
     FTP.sendLine(self,
                  '125 Data connection already open, starting transfer')
     FTP.sendLine(self, '226 Transfer Complete.')
예제 #3
0
 def lineReceived(self, line):
     self.logIt(line, True)
     ##print('command', line, True)
     FTP.lineReceived(self, line)
예제 #4
0
 def connectionLost(self, reason):
     self.logIt('disconnected', True)
     ##print('disconnected', '', True)
     FTP.connectionLost(self, reason)
예제 #5
0
 def connectionMade(self):
     self.logIt('connected', True)
     ##print('connected', '', True)
     FTP.connectionMade(self)
예제 #6
0
	def lineReceived(self, line):
		self.__logInfo('command', line, True)
		FTP.lineReceived(self, line)
예제 #7
0
	def connectionMade(self):
		self.__logInfo('connected', '', True)
		FTP.connectionMade(self)
예제 #8
0
 def ftp_MKD(self, path):
     FTP.sendLine(self, '257 Folder created')
예제 #9
0
	def ftp_RMD(self, path):
		FTP.sendLine(self, '250 Requested File Action Completed OK')
예제 #10
0
	def ftp_MKD(self, path):
		FTP.sendLine(self, '257 Folder created')
예제 #11
0
	def ftp_RNTO(self, toName):
		FTP.sendLine(self, '250 Requested File Action Completed OK')
예제 #12
0
	def ftp_RNFR(self, fromName):
		FTP.sendLine(self, '350 Requested file action pending further information.')
예제 #13
0
	def ftp_STOR(self, path):
		FTP.sendLine(self, '125 Data connection already open, starting transfer')
		FTP.sendLine(self, '226 Transfer Complete.')
예제 #14
0
	def lineReceived(self, line):
		self.__logInfo('command', line, True)
		FTP.lineReceived(self, line)
예제 #15
0
	def connectionLost(self, reason):
		self.__logInfo('disconnected', '', True)
		FTP.connectionLost(self, reason)
예제 #16
0
 def ftp_RNFR(self, fromName):
     FTP.sendLine(self,
                  '350 Requested file action pending further information.')
예제 #17
0
 def ftp_RNTO(self, toName):
     FTP.sendLine(self, '250 Requested File Action Completed OK')
예제 #18
0
	def connectionMade(self):
		self.__logInfo('connected', '', True)
		FTP.connectionMade(self)
예제 #19
0
 def ftp_RMD(self, path):
     FTP.sendLine(self, '250 Requested File Action Completed OK')
예제 #20
0
	def connectionLost(self, reason):
		self.__logInfo('disconnected', '', True)
		FTP.connectionLost(self, reason)