colab get filename code example
Example 1: download from colab
from google.colab import files
files.download("path")
Example 2: colab get filename
example1 = "/content/example1.txt"
file1 = open(example1, "r")
print(file1.name)
from google.colab import files
files.download("path")
example1 = "/content/example1.txt"
file1 = open(example1, "r")
print(file1.name)