# Filesystem ## Bilgi Alma [`basename(string $path, string $suffix): string`](https://www.php.net/manual/en/function.basename.php) - Dizin ismini verir, `suffix` varsa son eki temizler. [`dirname(string $path, int $depth): string`](https://www.php.net/manual/en/function.dirname.php) - Üst dizinin ismini verir. [`disk_free_space(string $path) / diskfreespace(string $path): float|false`](https://www.php.net/manual/en/function.disk-free-space.php) - Dosya sistemindeki boş alanı verir. [`disk_total_space(string $path): float|false`](https://www.php.net/manual/en/function.disk-total-space.php) - Dosya sisteminin toplam boyutunu verir. [`stat(string $file): array|false`](https://www.php.net/manual/en/function.stat.php) - Dosya hakkında bilgi verir. [`fstat(resource $stream): array|false`](https://www.php.net/manual/en/function.fstat.php) - Açık file pointer'a göre dosya hakkında bilgi verir. [`file_exists(string $file): bool`](https://www.php.net/manual/en/function.file-exists.php) - Dosyanın/dizinin olup olmadığını kontrol eder. [`fileatime(string $file): int|false`](https://www.php.net/manual/en/function.fileatime.php) - Dosyanın son erişilme zamanını verir. [`filectime(string $file): int|false`](https://www.php.net/manual/en/function.filectime.php) - Dosyanın son değiştirilme zamanını verir. [`filegroup(string $file): int|false`](https://www.php.net/manual/en/function.filegroup.php) - Dosya sahipliğindeki grubun numarasını verir. [`fileowner(string $file): int|false`](https://www.php.net/manual/en/function.fileowner.php) - Dosya sahipliğindeki kullanıcının numarasını verir. [`posix_getpwuid(int $id): array|false`](https://www.php.net/manual/en/function.posix-getpwuid.php) - Kullanıcı hakkında bilgi verir. [`fileperms(string $file): int|false`](https://www.php.net/manual/en/function.fileperms.php) - Dosya izinlerini verir. [`filesize(string $file): int|false`](https://www.php.net/manual/en/function.filesize.php) - Dosyanın boyutunu verir. [`filetype(string $file): string|false`](https://www.php.net/manual/en/function.filetype.php) - Dosya mı yoksa dizin mi olduğunun bilgisini verir. [`is_dir(string $path): bool`](https://www.php.net/manual/en/function.is-dir.php) - Dizin olup olmadığını kontrol eder. [`is_executable(string $path): bool`](https://www.php.net/manual/en/function.is-executable.php) - Dosyanın/dizinin çalıştırılabilir olup olmadığını kontrol eder. [`is_file(string $path): bool`](https://www.php.net/manual/en/function.is-file.php) - Dosya olup olmadığını kontrol eder. [`is_link(string $path): bool`](https://www.php.net/manual/en/function.is-link.php) - Sembolik link olup olmadığını kontrol eder. [`is_readable(string $path): bool`](https://www.php.net/manual/en/function.is-readable.php) - Okunabilir olup olmadığını kontrol eder. [`is_uploaded_file(string $path): bool`](https://www.php.net/manual/en/function.is-uploaded-file.php) - HTTP POST ile yüklenmiş bir dosya olup olmadığını kontrol eder. [`is_writable(string $path): bool`](https://www.php.net/manual/en/function.is-writable.php) - Dosyanın yazılabilir olup olmadığını kontrol eder. [`pathinfo(string $path): array|string`](https://www.php.net/manual/en/function.pathinfo.php) - Dosya/dizin bilgisini verir. [`glob(string $pattern): array|false`](https://www.php.net/manual/en/function.glob.php) - Belirtilen desene uygun pathleri(yolları) döndürür. ## İzinler [chmod(string $file, int $permission)](https://www.php.net/manual/en/function.chmod.php) - İzinleri değiştirir [chown(string $file, string|int $user)](https://www.php.net/manual/en/function.chown.php) - dosyanın sahipini değiştirir. ## İşlemler [`copy(string $source, string $dest): bool`](https://www.php.net/manual/en/function.copy.php) - Dosyayı kopyalar. [`unlink(string $file): bool`](https://www.php.net/manual/en/function.unlink.php) - Dosyayı sil. [`mkdir(string $path, int $mode, bool $recursive): bool`](https://www.php.net/manual/en/function.mkdir.php) - Dizin oluşturur. [`move_uploaded_file(string $from, string $to): bool`](https://www.php.net/manual/en/function.move-uploaded-file.php) - Yüklenmiş dosyanın konumunu değiştirir. [`rename($old, $new): bool`](https://www.php.net/manual/en/function.rename.php) - Dosyanın konumunu değiştirir. [`rmdir($path): bool`](https://www.php.net/manual/en/function.rmdir.php) - Dizini siler. [`symlink($target, $link): bool`](https://www.php.net/manual/en/function.symlink.php) - Sembolik link oluşturur. [`tempnam(string $directory, string $prefix): string|false`](https://www.php.net/manual/en/function.tempnam.php) - Geçici benzersiz dosya oluşturur ve ismini verir. [`tmpfile(): resource|false`](https://www.php.net/manual/en/function.tmpfile.php) - geçici dosya oluşturur, kapatıldığında dosya silinir. [`touch(string $file): bool`](https://www.php.net/manual/en/function.touch.php) - dosya oluşturur. ## Gezinme, Okuma, Yazma [`fopen(string $file, string $mode): resource`](https://www.php.net/manual/en/function.fopen.php) - Dosya pointerı oluşturur. [`fclose(resource $stream): bool`](https://www.php.net/manual/en/function.fclose.php) - Streami kapatır. [`feof(resource $stream): bool`](https://www.php.net/manual/en/function.feof.php) - Streamin dosya sonunda olup olmadığını kontrol eder. [`fgetc(resource $stream): string|false`](https://www.php.net/manual/en/function.fgetc.php) - pointerdan bir karakter getirir. [`fgets(resource $stream, int $length): string|false`](https://www.php.net/manual/en/function.fgets.php) - pointerdan bir satır alır. [`file_get_contents(string $file): string|false`](https://www.php.net/manual/en/function.file-get-contents.php) - dosya içeriğini alır. [`file_put_contents(string $file, $data): int`](https://www.php.net/manual/en/function.file-put-contents.php) - dosyaya yazma işlemi uygular. [`file(string $file): array`](https://www.php.net/manual/en/function.file.php) - komple dosyayı dizi olarak okur. [`flock(resource $stream, int $lockOption): bool`](https://www.php.net/manual/en/function.flock.php) - Dosyayı kilitler. [`fpassthru(resource $stream): int`](https://www.php.net/manual/en/function.fpassthru.php) - O anki pointer'dan sonuna kadarki kısmı çıktıya verir. [`readfile(string $file): int|false`](https://www.php.net/manual/en/function.readfile.php) - Dosya içeriğini çıktıya verir. [`realpath(string $file): string|false`](https://www.php.net/manual/en/function.realpath.php) - Dizinin gerçek konumunu verir. [`fread(resource $stream, int $length): string|false`](https://www.php.net/manual/en/function.fread.php) - O anki pointer'dan length kadarlık kısmı okur. [`fscanf(resource $stream, string $format, ...): array|int|false|null`](https://www.php.net/manual/en/function.fscanf.php) - Satırdaki içeriği formata göre okur ve değişkenlere atar. [`fseek(resource $stream, int $offset): int`](https://www.php.net/manual/en/function.fseek.php) - pointer'ın konumunu değiştirir. [`ftell(resource $stream): int|false`](https://www.php.net/manual/en/function.ftell.php) - pointerın konumunu verir. [`fwrite(resource $stream, string $data, int $length)`](https://www.php.net/manual/en/function.fwrite.php) - yazma işlemi yapar. [`rewind(resource $stream): bool`](https://www.php.net/manual/en/function.rewind.php) - pointer'ı başa alır. # Bonus: Dizin İşlemleri [`chdir(string $path): bool`](https://www.php.net/manual/en/function.chdir.php) - Çalışma dizinini değiştirir [`getcwd(): string|false`](https://www.php.net/manual/en/function.getcwd.php) - Çalışma dizinini döndürür. [`scandir(string $path): array`](https://www.php.net/manual/en/function.scandir.php) - Dizinin içeriğini listeler.