Skip to main content

fd_by_path

Return a list of file descriptors.

This method returns list of file descriptors corresponding to file paths passed in paths variable.

def fd_by_path(
paths: List[str]
) - > List[int]

Return a list of file descriptors. This method returns list of file descriptors corresponding to file paths passed in paths variable.

Parameters

NameTypeDescription
pathsList[str]List of file paths used to identify target files by their device and inode numbers.

Returns

TypeDescription
List[int]List of file descriptors currently open in the process that match the device and inode of the provided file paths.