File.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Symfony\Component\Finder\SplFileInfo[] allFiles(string $directory, bool $hidden = false)
  5. * @method static \Symfony\Component\Finder\SplFileInfo[] files(string $directory, bool $hidden = false)
  6. * @method static array directories(string $directory)
  7. * @method static array glob(string $pattern, int $flags = 0)
  8. * @method static bool cleanDirectory(string $directory)
  9. * @method static bool copy(string $path, string $target)
  10. * @method static bool copyDirectory(string $directory, string $destination, int|null $options = null)
  11. * @method static bool delete(string|array $paths)
  12. * @method static bool deleteDirectories(string $directory)
  13. * @method static bool deleteDirectory(string $directory, bool $preserve = false)
  14. * @method static bool exists(string $path)
  15. * @method static bool isDirectory(string $directory)
  16. * @method static bool isFile(string $file)
  17. * @method static bool isReadable(string $path)
  18. * @method static bool isWritable(string $path)
  19. * @method static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)
  20. * @method static bool missing(string $path)
  21. * @method static bool move(string $path, string $target)
  22. * @method static bool moveDirectory(string $from, string $to, bool $overwrite = false)
  23. * @method static int append(string $path, string $data)
  24. * @method static int lastModified(string $path)
  25. * @method static int prepend(string $path, string $data)
  26. * @method static int size(string $path)
  27. * @method static int|bool put(string $path, string $contents, bool $lock = false)
  28. * @method static mixed chmod(string $path, int|null $mode = null)
  29. * @method static mixed getRequire(string $path, array $data = [])
  30. * @method static mixed requireOnce(string $file, array $data = [])
  31. * @method static string basename(string $path)
  32. * @method static string dirname(string $path)
  33. * @method static string extension(string $path)
  34. * @method static string get(string $path, bool $lock = false)
  35. * @method static string hash(string $path)
  36. * @method static string name(string $path)
  37. * @method static string sharedGet(string $path)
  38. * @method static string type(string $path)
  39. * @method static string|false mimeType(string $path)
  40. * @method static string|null guessExtension(string $path)
  41. * @method static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)
  42. * @method static void link(string $target, string $link)
  43. * @method static \Illuminate\Support\LazyCollection lines(string $path)
  44. * @method static void relativeLink(string $target, string $link)
  45. * @method static void replace(string $path, string $content)
  46. *
  47. * @see \Illuminate\Filesystem\Filesystem
  48. */
  49. class File extends Facade
  50. {
  51. /**
  52. * Get the registered name of the component.
  53. *
  54. * @return string
  55. */
  56. protected static function getFacadeAccessor()
  57. {
  58. return 'files';
  59. }
  60. }