commit
eb2bfdb9d9
|
@ -1,5 +1,6 @@
|
||||||
[1.3.2015]
|
[1.3.2015]
|
||||||
Added...: SFTP Server module has been added to the framework!
|
Added...: SFTP Server module has been added to the framework!
|
||||||
|
Added...: SFTP Client module has been added to the framework.
|
||||||
|
|
||||||
[12.27.2014]
|
[12.27.2014]
|
||||||
Added...: Datatype module template has been added to the framework for creating datatype modules.
|
Added...: Datatype module template has been added to the framework for creating datatype modules.
|
||||||
|
|
|
@ -9,6 +9,7 @@ import os
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
def cli_parser():
|
def cli_parser():
|
||||||
|
@ -114,3 +115,17 @@ def title_screen():
|
||||||
|
|
||||||
def ea_path():
|
def ea_path():
|
||||||
return os.getcwd()
|
return os.getcwd()
|
||||||
|
|
||||||
|
|
||||||
|
def writeout_text_data(incoming_data):
|
||||||
|
# Get the date info
|
||||||
|
current_date = time.strftime("%m/%d/%Y")
|
||||||
|
current_time = time.strftime("%H:%M:%S")
|
||||||
|
file_name = current_date.replace("/", "") +\
|
||||||
|
"_" + current_time.replace(":", "") + "text_data.txt"
|
||||||
|
|
||||||
|
# Write out the file
|
||||||
|
with open(ea_path() + "/" + file_name, 'w') as out_file:
|
||||||
|
out_file.write(incoming_data)
|
||||||
|
|
||||||
|
return file_name
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import base64
|
import base64
|
||||||
import os
|
import os
|
||||||
import paramiko
|
import paramiko
|
||||||
import socket
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
Loading…
Reference in New Issue