FSO operations
You can run the following commands for performing FSO operations.
-
Creating directories inside FSO buckets:
- ozone fs -mkdir -p ofs://ozone1/s3v/fso-bucket/dir1/dir2/dir3/
- ozone fs -mkdir -p ofs://ozone1/s3v/fso-bucket//aa///bb//cc///
In FSO, bucket paths will be normalized - Listing FSO bucket ozone fs -ls -R ofs://ozone1/s3v/fso-bucket/
-
Creating some files inside FSO buckets
- ozone fs -touch ofs://ozone1/s3v/fso-bucket/dir1/dir2/dir3/file1
- ozone fs -touch ofs://ozone1/s3v/fso-bucket/dir1/dir2/dir3/file2
- ozone fs -touch ofs://ozone1/s3v/fso-bucket/aa/bb/cc/abc_file3
- Listing FSO bucket ozone fs -ls -R ofs://ozone1/s3v/fso-bucket/
- Move Command on a file, which Ozone internally does a renaming operation ozone fs -mv ofs://ozone1/s3v/fso-bucket/dir1/dir2/dir3/file2 ofs://ozone1/s3v/fso-bucket/dir1/dir2/
- Move Command on a directory, which internally does a renaming operation ozone fs -mv ofs://ozone1/s3v/fso-bucket/aa/ ofs://ozone1/s3v/fso-bucket/new_aa
- Listing FSO bucket ozone fs -ls -R ofs://ozone1/s3v/fso-bucket/