LoginSignup
0
0

More than 1 year has passed since last update.

python list files

Posted at
from os import listdir
from os.path import isfile, join

def main():
    mocapFbxPath = 'J:\\hx\\work\\prod\\mcp\\motiondata\\export'
    onlyfiles = [f for f in listdir(mocapFbxPath) if isfile(join(mocapFbxPath, f))]
    for _file in onlyfiles:
        print(_file)
# cmds.file(new=True, force=True)
#                 cmds.file(fileName, open=True)

if __name__ == '__main__':
    main()
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0