0

With library python-gitlab response is 404 when i try:

file = project.files.get(file_path='test_dir/test_file_created_manually', ref='main')

but file exists(!)

items = project.repository_tree(path='test_dir')

returns this file with 'path': 'test_dir/test_file_created_manually'

when i work with root catalog in project - all OK with files

Final goal is create files in subdirs, so project.files.create is with 404 too, not create automatically file with path in 'file_path' attr.

May be problem is in Gitlab version 13.12.12., like in Http 404 when trying to get files from GitLab API but project.files.create works in root catalog of project, but not in subcatalog (

0 Answers0