Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#Import os Library import os #open a file and create a file descriptor fd = os.open( "test.txt", os.O_RDONLY) #Get the maximum length of a filename print (os.fpathconf(fd, 'PC_NAME_MAX')) #close file os.close(fd)
255