回答編集履歴

2

コードのタイプミス

2018/02/10 15:13

投稿

退会済みユーザー
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  var file = iterator4files.next();
16
16
 
17
- if(file.getLastUpdate() - {前日の日付} > 0){
17
+ if(file.getLastUpdated() - {前日の日付} > 0){
18
18
 
19
19
  OUTPUT.addFile(file);
20
20
 
@@ -35,3 +35,11 @@
35
35
 
36
36
 
37
37
  ※リンク先コピペミスしていましたので修正しました。
38
+
39
+
40
+
41
+ ※ hase_gawaさん のおっしゃられていたエラーの原因は単純なコードのタイプミスでした。(file.getLastUpdate() → file.getLastUpDated())
42
+
43
+ 簡易ですが、最終更新日付のチェック、テストにて動作確認済みです。
44
+
45
+ すでに解決済みとなっておりますが、誰かの参考になれば幸いです。

1

リンク先のコピペミス

2018/02/10 15:13

投稿

退会済みユーザー
test CHANGED
@@ -28,6 +28,10 @@
28
28
 
29
29
  [参考]
30
30
 
31
+ [https://developers.google.com/apps-script/reference/drive/file#getLastUpdated()](https://developers.google.com/apps-script/reference/drive/file#getLastUpdated())
32
+
31
33
  [https://developers.google.com/apps-script/reference/drive/folder#getLastUpdated()](https://developers.google.com/apps-script/reference/drive/folder#getLastUpdated())
32
34
 
35
+
36
+
33
- [https://developers.google.com/apps-script/reference/drive/folder#getLastUpdated()](https://developers.google.com/apps-script/reference/drive/folder#getLastUpdated())
37
+ ※リンク先コピペミスしていましたので修正しました。