Sync calls count_files / all_files without policies_manager, which causes incorrect local file system scanning

Abierto
#448 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
cli

Línea de trabajo

Start in the sync command, where it calls count_files, which in turn calls all_files on the local folder, and check whether the constructed policies_manager is in scope there. Then trace sync_folders to see how the exclusion regexes are applied elsewhere, and pass the same manager through. Done when counting and listing skip excluded paths, so a circular symlink tree like /run no longer makes the scan loop.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

b2 sync calls count_files, which in turn calls all_files on the local folder.
However, it does not pass in the constructed policies_manager. This means it does not apply the regexs to exclude files/folders.

This causes incorrect file counting, and if you're relying on those directory exclusions to keep b2 from indexing problematic areas, can cause the system to do stuff you had been trying to keep it from doing.

In my case, there are certain linux folders which cause b2 to loop (eg there are some circular symlinks in /run).

I don't know the system well enough to say if there are consequences to this, but I did find a simple workaround of essentially piping policies_manager through sync_folders -> count_files -> all_files.

Lenguaje dominante
Python
Estrellas
638
Forks
138
Merge medio
8 h 27 min
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Backblaze/B2_Command_Line_Tool

Todos los issues de Backblaze/B2_Command_Line_Tool

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.