Answers for "get directory of a file linux"

7

os get current directory

import os

#Get Current working Directory
currentDirectory = os.getcwd()

#Change the Current working Directory
os.chdir('/home/varun')
Posted by: Guest on June-03-2020
0

get directory of a file linux

Signed-off-by: Dwaipayan Ray <[email protected]>
Posted by: Guest on February-08-2021

Code answers related to "get directory of a file linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language