El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Help Center/ Object Storage Service/ Tools Guide/ obsutil/ FAQs/ Why Is the Number of Objects I Downloaded from OBS to My Local Windows PC Different from That in OBS?

Why Is the Number of Objects I Downloaded from OBS to My Local Windows PC Different from That in OBS?

Updated on 2024-03-07 GMT+08:00

Windows does not distinguish the cases of files or folders while OBS does. For example, in Windows, FOO.txt and foo.txt are regarded as the same file, but in OBS, they are regarded as different files.

In the following example, a bucket has objects with the same name but different cases.

obsutil ls obs://test
Start at 2024-01-17 01:33:37.6378193 +0000 UTC

Listing objects .

Folder list:
obs://test/TEST/
obs://test/test/

Object list:
key                                 LastModified                  Size      StorageClass        ETag      
obs://test/TEST/FOO.txt         2024-01-17T01:33:21Z          493B      standard            "735b0ca5680bfa12d8895702662192ec"

obs://test/test/foo.txt         2024-01-17T01:32:59Z          5B        standard            "5d41402abc4b2a76b9719d911017c592"

Total size of bucket: 498B
Folder number: 2
File number: 2

Run the cp command to download all objects from this bucket to the test directory on your local Windows PC.

obsutil cp obs://test ./test -r -f

Start at 2024-01-17 01:39:40.4700311 +0000 UTC


Parallel:      5                   Jobs:          5
Threshold:     50.00MB             PartSize:      auto
VerifyLength:  false               VerifyMd5:     false
CheckpointDir: C:\Users\Administrator\.obsutil_checkpoint

Task id: 72c5ac1c-68c0-4206-95d6-18a193bfa77e
OutputDir: C:\Users\Administrator\.obsutil_output
TempFileDir: C:\Users\Administrator\temp

[---------------------------] 100.00% tps:484.98 162.11KB/s 4/4 498B/498B 205ms
Succeed count:      4         Failed count:       0
Succeed bytes:      498B
Metrics [max cost:86 ms, min cost:85 ms, average cost:43.25 ms, average tps:9.13, transferred size:498B]

Task id: 72c5ac1c-68c0-4206-95d6-18a193bfa77e

Run the dir /b /s command to view all files, folders, and files in subdirectories in the test directory. It is found that there are only the TEST\ folder and the TEST\foo.txt file kept.

CAUTION:

In this case, the local files downloaded may not be completely the same as the original OBS objects. The local file TEST\foo.txt is actually TEST/FOO.txt (but not test/foo.txt) in OBS. This is determined by the download success sequence of files. How files and folders are kept on a local Windows PC is based on the following rules:

  1. Folders: The folder that is first successfully downloaded is kept. For example, if TEST/ is downloaded successfully before test/, only the TEST/ folder will be kept on your local Windows PC.
  2. Files: The name of the file that is first downloaded successfully and the content of the file that is last downloaded successfully will be kept. For example, if test/foo.txt is downloaded before TEST/FOO.txt, the file name will be foo.txt, but the file content will be that of FOO.txt.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback