%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/samba/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/samba/__pycache__/tdb_util.cpython-312.pyc

�

�I�d���$�ddlZddlZddlZdd�Zy)�Nc���dtjj�gtjd�jtj�z}|D]C}tjj|d�}tjj|�s�Cn
tdd��|dd|g}|r|jd�tj|d	d
��}tjd|z|�y
)z8Copy tdb file using tdbbackup utility and rename it
    �bin�PATH�	tdbbackup�z6could not find tdbbackup tool: is tdb-tools installed?z-sz	.copy.tdbz-rTF)�	close_fds�shellz%s.copy.tdbN)�samba�param�bin_dir�os�getenv�split�pathsep�path�join�exists�FileNotFoundError�append�
subprocess�
check_call�rename)�file1�file2�readonly�dirs�d�toolpath�
tdbbackup_cmd�statuss        �0/usr/lib/python3/dist-packages/samba/tdb_util.py�tdb_copyr"s���
�5�;�;�&�&�(�)�B�I�I�f�,=�,C�,C�B�J�J�,O�O�D�
�;���7�7�<�<��;�/��
�7�7�>�>�(�#��;� ��$:�;�	;��t�[�%�8�M�����T�"�
�
"�
"�=�D��
N�F��I�I�m�e�#�U�+�)F)r
rr
r"�r#r!�<module>r%s��*
��	�,r#

Zerion Mini Shell 1.0