Comments (9)
您好,static这个目录是如何被创建的?我在控制台网页上新建了一个目录,在ossfs中ll看到,时间是属性是正确的,重现不了您的问题。
from ossfs.
时间太久了,具体如何创建的记不清了。
应该是通过SDK上传对象时创建的。比如/static/js/1.js
。
Aliyun cli有什么命令可以列出这个object的properties吗?
from ossfs.
可以通过meta命令查看object的属性
from ossfs.
我这边也有同样的问题:
[root@iZ22a5tl53vZ ~]# cd test
[root@iZ22a5tl53vZ test]# ls -l
total 0
[root@iZ22a5tl53vZ test]# mkdir ossdir
[root@iZ22a5tl53vZ test]# ossfs ken-oss-sg-1 ossdir -ourl=http://oss-ap-southeast-1-internal.aliyuncs.com -o allow_other
[root@iZ22a5tl53vZ test]# ls -l
total 1
drwxrwxrwx 1 root root 0 Jan 1 1970 ossdir
from ossfs.
@ldkhang 您的问题和上面不一样,挂载点(即您的ossdir)的时间显示的确是1970,这是by design的。
上面的问题是在挂载目录内的子目录或者文件显示1970,按道理是不应该出现1970的,而是文件创建的时间。
from ossfs.
明白了,但是为什么 by design 是1970呢?
from ossfs.
逻辑上,一般是先有目录,再有目录内的文件。所以时间上,一般应该是目录内的文件晚于目录本身。但是在挂载的场景下,这些文件可能是其他地方创建的,如果以当前时间作为挂载点的时间,可能会导致目录比目录内的内容还新,有点奇怪,所以就选了一个最小的时间,1970.1.1。
from ossfs.
@zxkane 如果不能重现,这个issue我先关了,有问题再reopen。
from ossfs.
@zxkane static的时间是1970是因为OSS中并没有'static/'这个对象,而只有'static/folder/a.txt'这个对象。OSS中的目录是模拟出来的,详见:https://help.aliyun.com/document_detail/oss/user_guide/manage_object/list_object.html
from ossfs.
Related Issues (20)
- 使用 s3fs 替代 ossfs
- 请问可否支持请求者付费模式? HOT 1
- 轻量应用服务器不能使用内网Endpoint进行挂载吗 HOT 1
- ossfs使用流量过高,一天之内好几个TB HOT 1
- 文件夹拷贝异常,文件丢失
- 局域网内挂载失败 HOT 1
- centos8.2什么时候支持 HOT 1
- 将oss路径挂载到服务器,然后通过nfs 二次共享路径后,文件夹内容为空
- ossfs: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory HOT 2
- [ossfs 挂载] oss bucket 更新后,挂载卷不更新
- ossfs挂载后,通过nfs构建server,用作k8s的volume
- 开源版本断更了吗,已经很久不更新了 HOT 1
- ossfs: invalid line in passwd file, found whitespace character.
- ossfs可以用来挂载ceph rgw吗
- [Feature Request] support speed limit HOT 1
- Dependencies.
- 提供arm64包?
- ubuntu20开机自动挂载
- v1.91.1 在 alpine 下编译报错 HOT 1
- ossfs coredump with signal SIGSEGV with gdb stacktrace
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ossfs.