| Server IP : 216.238.111.58 / Your IP : 216.73.217.34 Web Server : LiteSpeed System : Linux hosting.smartskills.com.br 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Mon Apr 20 18:04:27 EDT 2026 x86_64 User : skillsitcom ( 1002) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/vdo/utils/__pycache__/ |
Upload File : |
3
x?ag11 � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlmZ dd lmZmZ ejd
� G dd� de�ZG d
d� de�ZG dd� de�ZG dd� de�ZdS )z�
FileUtils - Provides dmmgmnt file-related capabilities.
$Id: //eng/vdo-releases/aluminum/src/python/vdo/utils/FileUtils.py#4 $
� )�absolute_import)�division)�print_function)�unicode_literalsN� )�Command)�Timeout�TimeoutErrorZutilsc s` e Zd ZdZejd�Zedd� �Z� fdd�Z dd� Z
d d
� Zedd� �Zej
d
d� �Z� ZS )�FileBasez�The FileBase object; provides basic file control.
Class attributes:
log (logging.Logger) - logger for this class
Attributes:
None
zutils.FileBasec C s | j S )N)�_FileBase__filePath)�self� r
�/usr/lib/python3.6/FileUtils.py�path= s z
FileBase.pathc s. t t| �j� tjj|�| _|jdd�| _dS )z:
Arguments:
None
Returns:
Nothing
�fdN) �superr
�__init__�osr �realpathr �get�
_FileBase__fd)r �filePath�args�kwargs)� __class__r
r r D s zFileBase.__init__c C s | S )Nr
)r r
r
r � __enter__P s zFileBase.__enter__c C s dS )NFr
)r �
exceptionType�exceptionValue� tracebackr
r
r �__exit__T s zFileBase.__exit__c C s | j S )N)r )r r
r
r �_fd[ s zFileBase._fdc C s
|| _ d S )N)r )r �valuer
r
r r b s )�__name__�
__module__�__qualname__�__doc__�logging� getLogger�log�propertyr r r r r �setter�
__classcell__r
r
)r r r
0 s
r
c s>