文件操作 - procutils.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/twisted/python/__pycache__/procutils.cpython-310.pyc
编辑文件内容
o �b[ � @ s d Z ddlZejfdd�ZdS )z' Utilities for dealing with processes. � Nc C s� g }t tdtj�dd��tj���}tj�dd�}|du rg S tj�dd��tj�D ](}tj�|| �}t� ||�r>|� |� |D ]}|| }t� ||�rQ|� |� q@q*|S )a� Search PATH for executable files with the given name. On newer versions of MS-Windows, the PATHEXT environment variable will be set to the list of file extensions for files considered executable. This will normally include things like ".EXE". This function will also find files with the given name ending with any of these extensions. On MS-Windows the only flag that has any meaning is os.F_OK. Any other flags will be ignored. @type name: C{str} @param name: The name for which to search. @type flags: C{int} @param flags: Arguments to L{os.access}. @rtype: C{list} @return: A list of the full paths to files found, in the order in which they were found. N�PATHEXT� �PATH)�list�filter�os�environ�get�split�pathsep�path�join�access�append)�name�flags�result�extsr �p�e�pext� r �:/usr/lib/python3/dist-packages/twisted/python/procutils.py�which s ��r )�__doc__r �X_OKr r r r r �<module> s
修改文件时间
将文件时间修改为当前时间的前一年
删除文件