반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Python
- numpy
- Redshift
- Mac
- PySpark
- gas
- c#
- google apps script
- math
- Github
- list
- dataframe
- hive
- Google Spreadsheet
- 파이썬
- matplotlib
- django
- Google Excel
- GIT
- Kotlin
- PostgreSQL
- string
- PANDAS
- Apache
- Excel
- SQL
- Java
- Tkinter
- array
Archives
- Today
- Total
목록getFilesByName (1)
달나라 노트
Google Apps Script : getFileById, getFilesByName (File 정보 얻기, File 객체 얻기)
Google Apps Script에서 파일 정보를 얻어주는 method는 두 가지가 있습니다. getFileById()와 getFilesByName() 입니다. Syntax DriveApp.getFileById(file_id) DriveApp.getFilesByName(file_name) getFileById()는 말그대로 file의 고유 ID를 통해 해당 file의 객체를 얻어옵니다. getFilesByName()은 file의 이름을 통해 file의 객체들을 얻어옵니다. 이 둘은 같을까요? 정답은 같지만 다릅니다. 위 method를 본격적으로 알아보기 전에 알아둬야 할 배경 지식이 있습니다. Google Drive에서는 폴더이건 파일이건 중복 이름이 있을 수 있습니다. 보통 컴퓨터에선 중복된 파일 이름..
Google Apps Script
2022. 11. 21. 21:06