title: Issues Importing Obj Files Into Maya
body: <p>Thanks for taking a moment to read this! So, as the title of my post implies, I'm trying to import some obj files into Maya, but I get the following error message when I try running my script:</p>
  
  <pre><code>Error: line 1: TypeError: file &lt;maya console&gt; line 8: object of type 
  'NoneType' has no len()
  </code></pre>
  
  <p>My script is listed below:</p>
  
  <pre><code>import maya.cmds as cmds
  
  
  pathOfFiles = "/This PC/Desktop/Facial Rigging Blendshapes/"
  fileType = "obj"
  
  files = cmds.getFileList(folder=pathOfFiles, filespec='*.%s' % fileType)
  if len(files) == 0:
      cmds.warning("No files found")
  else:
      for f in files:
          cmds.file(pathOfFiles + f, i=True)
  </code></pre>
  
  <p>Thanks again for taking the time to read this! Cheers!</p>