Python returns the file name and extension based on the given file

From , 3 Years ago, written in Python, viewed 233 times.
URL https://pastebin.vip/view/94b087da
  1. def GetFileNameAndExt(filename):
  2.     import os
  3.     (filepath,tempfilename) = os.path.split(filename);
  4.     (shotname,extension) = os.path.splitext(tempfilename);
  5.     return shotname,extension
  6.  
  7.  

Reply to "Python returns the file name and extension based on the given file"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website