lint
This commit is contained in:
parent
e11b92e57b
commit
4961209719
3 changed files with 9 additions and 10 deletions
|
@ -1,6 +1,5 @@
|
|||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
import ps
|
||||
|
||||
|
@ -21,18 +20,18 @@ def empty_file(path: str):
|
|||
|
||||
def get_mount_uuid(path: str):
|
||||
return ps.run_line(
|
||||
('findmnt'),
|
||||
('--noheadings'),
|
||||
('findmnt',),
|
||||
('--noheadings',),
|
||||
('--output', 'UUID'),
|
||||
(path),
|
||||
(path,),
|
||||
)
|
||||
|
||||
|
||||
def get_path_mount(path: str):
|
||||
return ps.run_line(
|
||||
('stat'),
|
||||
('stat',),
|
||||
('--format', '%m'),
|
||||
(path),
|
||||
(path,),
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue