2024-06-18 15:00:05 +00:00
|
|
|
from gitcloak.classes.git import Git
|
|
|
|
|
|
|
|
repo = "https://github.com/privatecoffee/transfer.coffee"
|
|
|
|
git = Git(repo)
|
2024-06-19 06:31:07 +00:00
|
|
|
print(git.get_directory_structure("public/"))
|
2024-06-18 15:00:05 +00:00
|
|
|
|
|
|
|
file_path = "public/dist/js/webtorrent.LICENSE"
|
|
|
|
content = git.get_file_content(file_path)
|
|
|
|
print(f"Type of content: {type(content)}")
|
|
|
|
content = content.decode('utf-8')
|
|
|
|
print(f"\nContent of {file_path}:\n{content}")
|