Add directories by type in log path

Changes:
     - add minor code logic to append type in the log path

Example:
     - my_ffdc/OPENBMC/system_nmae_timestamp/
     - my_ffdc/RHEL/system_nmae_timestamp/

Change-Id: I8ac75fdc80692afd87a02dcbf3fa677c138ae947
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_collector.py b/ffdc/ffdc_collector.py
index e1a9f5d..f31abe6 100644
--- a/ffdc/ffdc_collector.py
+++ b/ffdc/ffdc_collector.py
@@ -47,7 +47,7 @@
             self.username = username
             self.password = password
             self.ffdc_config = ffdc_config
-            self.location = location
+            self.location = location + "/" + remote_type.upper()
             self.ssh_remoteclient = None
             self.telnet_remoteclient = None
             self.ffdc_dir_path = ""
@@ -597,6 +597,7 @@
 
         timestr = time.strftime("%Y%m%d-%H%M%S")
         self.ffdc_dir_path = self.location + "/" + self.hostname + "_" + timestr + "/"
+        print("\n\tFFDC Path: %s " % self.ffdc_dir_path)
         self.ffdc_prefix = timestr + "_"
         self.validate_local_store(self.ffdc_dir_path)
 
@@ -611,13 +612,13 @@
 
         if not os.path.exists(dir_path):
             try:
-                os.mkdir(dir_path, 0o755)
+                os.makedirs(dir_path, 0o755)
             except (IOError, OSError) as e:
                 # PermissionError
                 if e.errno == EPERM or e.errno == EACCES:
-                    print('>>>>>\tERROR: os.mkdir %s failed with PermissionError.\n' % dir_path)
+                    print('>>>>>\tERROR: os.makedirs %s failed with PermissionError.\n' % dir_path)
                 else:
-                    print('>>>>>\tERROR: os.mkdir %s failed with %s.\n' % (dir_path, e.strerror))
+                    print('>>>>>\tERROR: os.makedirs %s failed with %s.\n' % (dir_path, e.strerror))
                 sys.exit(-1)
 
     def print_progress(self, progress):