79151384

Date: 2024-11-02 18:49:22
Score: 1
Natty:
Report link

You may use os.path.split(os.path.split("C:\Users\Name\New\Data\Folder1\Folder1-1")[0])[1] construction: it will produce "Folder1" Sure, if I understood right what your issue is.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bohdan