In [12]:
import gcsfs
In [11]:
fs = gcsfs.GCSFileSystem(project='polar-program-784', token=None)
In [14]:
fs.ls('kemerelab-data/diba')
Out[14]:
In [10]:
with fs.open('kemerelab-data/new-file', 'wb') as f:
f.write(2*2**20 * b'a')
f.write(2*2**20 * b'a') # data is flushed and file closed
fs.du('kemerelab-data/new-file')
Out[10]: