⚡ fonksiyon
create_dir_all
fonksiyon create_dir_all
Create directory and all parent directories (like mkdir -p).
Dizin ve tüm üst dizinleri oluştur (mkdir -p gibi).
Parameters / Parametreler
path: Directory path to create / Oluşturulacak dizin yolu
Returns / Dönüş Değeri
Returns Ok(empty) on success (idempotent), or error. Başarıda Tamam(boş) döner (idempotent), veya hata.
Example / Örnek
// Creates all missing directories
io.create_dir_all("data/logs/2024/january")?
// Safe to call multiple times
io.create_dir_all("data/logs/2024/january")? // No error
Performance / Performans
O(depth) - Creates each missing directory level. O(derinlik) - Her eksik dizin seviyesini oluşturur.