> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-dependabot-submodules-dot-claude-85784ca.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# File

export const GitHubLink = ({url}) => <a href={url} target="_blank" rel="noopener noreferrer" className="github-source-link">
    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
      <path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" />
    </svg>
    GitHub 소스 코드
  </a>;

<GitHubLink url="https://github.com/wandb/wandb/blob/main/wandb/apis/public/files.py#L245" />

## <kbd>class</kbd> wandb.apis.public.File

W\&B에 저장된 파일입니다.

W\&B에 저장된 단일 파일을 나타냅니다. 파일 메타데이터에 액세스할 수 있습니다. 파일은 특정 run과 연결되며, 텍스트 파일, 모델 가중치, 데이터셋, 시각화, 기타 아티팩트를 포함할 수 있습니다. 파일을 다운로드하거나 삭제하고, 파일 속성에 액세스할 수 있습니다.

특정 run에 로깅된 특정 파일을 찾으려면 딕셔너리에서 하나 이상의 속성을 지정하세요. 다음 키로 검색할 수 있습니다.

* id (str): 파일이 포함된 run의 ID
* name (str): 파일 이름
* url (str): 파일 경로
* direct\_url (str): 버킷 내 파일 경로
* sizeBytes (int): 바이트 단위 파일 크기
* md5 (str): 파일의 md5
* mimetype (str): 파일의 mimetype
* updated\_at (str): 마지막 업데이트의 타임스탬프
* path\_uri (str): 버킷 내 파일 경로이며, 현재 S3 객체 및 레퍼런스 파일에만 사용할 수 있습니다.

<div id="properties">
  ## 속성
</div>

### <kbd>속성</kbd> path\_uri

저장소 버킷에 있는 파일의 URI 경로를 반환합니다.

### <kbd>속성</kbd> size

파일 크기를 바이트 단위로 반환합니다.

<div id="methods">
  ## 메서드
</div>

### <kbd>방법</kbd> File.delete()

```python theme={null}
self
```

W\&B 서버에서 파일을 삭제합니다.

### <kbd>방법</kbd> File.download()

```python theme={null}
self,
root: 'str' = '.',
replace: 'bool' = False,
exist_ok: 'bool' = False,
api: 'Api | None' = None
```

wandb 서버에서 run이 이전에 저장한 파일을 다운로드합니다.

<div id="arguments">
  ##### 인수
</div>

* `root`: 파일을 저장할 로컬 디렉터리입니다. 기본값은 현재 작업 디렉터리(".")입니다.
* `replace`: `True`이면 로컬 파일이 이미 존재할 경우 다운로드한 파일로 덮어씁니다. 기본값은 `False`입니다.
* `exist_ok`: `True`이면 파일이 이미 존재해도 ValueError를 발생시키지 않으며, `replace=True`가 아닌 한 다시 다운로드하지 않습니다. 기본값은 `False`입니다.
* `api`: 지정한 경우, 파일을 다운로드하는 데 사용할 `Api` 인스턴스입니다.
