【问题标题】:File opening in Google Cloud with append使用附加功能在 Google Cloud 中打开文件
【发布时间】:2017-06-20 10:08:09
【问题描述】:

通常我打开一个文件并将内容写入

file_put_contents('data_file.txt', $data, FILE_APPEND | LOCK_EX);

和我在google云本地服务器中打开的文件一样

file_put_contents("gs://${default_bucket}/data_file.txt", $data,); 

在谷歌云中追加的条件是什么??

【问题讨论】:

  • 没有追加。您必须创建一个新文件。

标签: google-app-engine google-cloud-datastore google-cloud-platform google-cloud-storage


【解决方案1】:

正如 Jeff 所说,没有附加。 GCS 确实有复合对象,根据您的用例可能对您有用。

https://cloud.google.com/storage/docs/composite-objects

【讨论】:

    猜你喜欢
    • 2018-07-27
    • 2019-08-24
    • 1970-01-01
    • 2018-11-21
    • 1970-01-01
    • 2014-12-02
    • 1970-01-01
    • 2017-10-27
    • 2016-03-29
    相关资源
    最近更新 更多