You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
こんにちは
Googleドライブのファイルにはサイズと使用容量があると思いますが、 Google Apps Scriptで使用容量を取得する方法をご存知の方いませんか?
getSize()だとサイズが取れますが、使用容量は取得できません。
お願いします
なかひこ
unread,
May 7, 2018, 4:08:51 AM5/7/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps API Japan
file.getSize()は,ファイルの使用容量を返すメソッドです.
以下に,公式リファレンスの説明を載せます.
「Gets the number of bytes used to store the File in Drive. Note that G Suite application files do not count toward Drive storage limits and thus return 0 bytes.」
「ドライブにファイルを格納するために使用されたバイト数を取得します。 G Suiteのアプリケーションファイルはドライブのストレージ制限に含まれないため、0バイトが返されます。」
とのことです.
逆に,これらのファイルに関しては純粋なサイズを取得する方法は無いようです.
2018年4月9日月曜日 12時48分28秒 UTC+9 hikochang:
hikochang
unread,
May 7, 2018, 11:41:49 AM5/7/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message