1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-23 17:15:38 +01:00

Removed colors fromlistdir

This commit is contained in:
John Hammond 2021-05-08 00:54:29 -04:00
parent 4bd102faae
commit 5840e61108

View File

@ -681,7 +681,7 @@ class Linux(Platform):
try: try:
p = self.run( p = self.run(
["ls", "--all", "-1", path], ["ls", "--all", "-1", "--color=never", path],
encoding="utf-8", encoding="utf-8",
capture_output=True, capture_output=True,
check=True, check=True,
@ -938,9 +938,6 @@ class Linux(Platform):
:param mode: the open-mode (see built-in ``open``) :param mode: the open-mode (see built-in ``open``)
:type mode: str :type mode: str
:return: a file-like object :return: a file-like object
:raises:
FileNotFoundError: the specified file does not exist
IsADirectoryError: the specified path refers to a directory
""" """
# Ensure no invalid overlap of modes # Ensure no invalid overlap of modes