Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プログラムでフォルダを作成しましたが、Google ドライブに表示されています。次に、作成したフォルダーにファイルを追加します。ファイルは作成されていますが、ルート フォルダー内にあります。そうなってほしくない。
ありがとう
setParentファイル情報を作成するときは?リクエストで使用されるファイル情報にParentReference追加されinsertます。親参照を作成するために必要なのは、親 (作成したフォルダー) の ID (および、それがルートかどうかを示すフラグ) だけです。
setParent
ParentReference
insert