[Python] Files written by Colab not appearing in finder

Discussão em 'Python' iniciado por Stack, Março 26, 2025.

  1. Stack

    Stack Membro Participativo

    I have written a function to download certain files to both a local directory and a google drive directory. The files do not appear in Finder, nor via an "ls -la" command in Terminal.
    When I run a Terminal Listing within my colab notebook, the files are listed in the expected directory structure:

    import os
    for root, dirs, files in os.walk("/Users/glenn/Documents/SEC Edgar Data"):
    print("Folder:", root)
    for file in files:
    print(" ", file)


    COLAB OUTPUT SAMPLE:

    older: /Users/xxxxx/Documents/SEC Edgar Data
    Comerica_10K.html
    test_file.txt

    Folder: /Users/xxxxx/Documents/SEC Edgar Data/sec-edgar-filings
    Folder: /Users/xxxxx/Documents/SEC Edgar Data/sec-edgar-filings/WTFC
    Folder: /Users/xxxxx/Documents/SEC Edgar Data/sec-edgar-filings/WTFC/10-K
    Folder: /Users/xxxxx/Documents/SEC Edgar Data/sec-edgar-filings/WTFC/10-K/0001015328-25-000093
    full-submission.txt
    Folder: /Users/xxxxx/Documents/SEC Edgar Data/sec-edgar-filings/WTFC/10-K/0000948572-00-000021


    I have tried many different debugging options, including looking for hidden files and restarting the finder. Still, no files appear.

    Can anybody help me further debug?

    Continue reading...

Compartilhe esta Página