問題タブ [google-drive-shared-drive]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
powershell - Powershell コマンドレット: ファイルをチーム ドライブに移動する
ファイルをローカル ディレクトリからチーム ドライブに移動するのに苦労しています。
PS から離れて別のルートを探すことを余儀なくされるかもしれないと感じています。
このコマンドは機能しません:
Move-Item -Path 'C:\Program Files (x86)\FieldSmart View\Logs\BgSync.log' -Destination 'G:\Team Drives\LGE Prints\Logs\$env:computername.txt'
このコマンドは動作します:
Move-Item -Path 'C:\Program Files (x86)\FieldSmart View\Logs\BgSync.log' -Destination C:\Users\ITAdmin\Desktop\Test\$env:computername.txt
唯一の違いは目的地です。
ファイルをチーム ドライブに移動しようとすると、次のエラーが返されます。
Move-Item : 指定されたパスの形式はサポートされていません。
行:1 文字:1
Move-Item -Path 'C:\Program Files (x86)\FieldSmart View\Logs\BgSync.l ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Move-Item], NotSupportedException
FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.MoveItemCommand
私に何ができる?
google-drive-api - REST API を使用して、Google ドライブ フォルダーとサブ フォルダー内のすべてのファイルを再帰的に一覧表示する
Google ドライブ API を使用して、特定のフォルダとそのサブフォルダ内のすべてのファイルを一覧表示する方法はありますか?
私が知る限り、REST APIのFile:listメソッドとChildrenメソッドは、特定のフォルダーのファイルのみを返すようです。基本的にdir /s
、Windows と同等の機能が必要です。