lbryio/lbry-sdk

Ensure that default download directory is writable on daemon startup

Open

#3.270 aberto em 20 de abr. de 2021

Ver no GitHub
 (10 comments) (0 reactions) (0 assignees)Python (500 forks)batch import
area: downloadsgood first issuehelp wantedtype: improvement

Métricas do repositório

Stars
 (7.220 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Creating a new issue based on lbryio/lbry-sdk#877

  • Update ensure_directory_exists() to check that the directory is writable by the current process.
  • If it's not, return a useful error
  • Add tests to cover the case when
    • download directory does not exist
    • download dir exists but is not writable
    • dir exists and is writable
    • the path refers to a file not a directory

bonus: also check if disk is full when sdk starts. this check should be outside ensure_directory_exists(). it probably goes somewhere near here

Guia do colaborador