src/bbn/file/dir.php
public static function copy($src, $dst): bool
  {
    if ( is_file($src) ){
      return copy($src, $dst);
    }
    if ( is_dir($src) && self::create_path($dst) ){
      $files = self::get_files($src);
      $dirs = self::get_dirs($src);
      foreach ( $files as $f ){
        copy($f, $dst.'/'.basename($f));
      }
      foreach ( $dirs as $f ){
        self::copy($f, $dst.'/'.basename($f));
      }
      return true;
    }
    else{
      return false;
    }
  }
public static function copy($src, $dst): bool
  {
    if ( is_file($src) ){
      return copy($src, $dst);
    }
    if ( is_dir($src) && self::create_path($dst) ){
      $files = self::get_files($src);
      $dirs = self::get_dirs($src);
      foreach ( $files as $f ){
        copy($f, $dst.'/'.basename($f));
      }
      foreach ( $dirs as $f ){
        self::copy($f, $dst.'/'.basename($f));
      }
      return true;
    }
    else{
      return false;
    }
  }
public static function copy ( $ src , $ dst ) : bool { if ( is_file ( $ src ) ) { return copy ( $ src , $ dst ) ; } if ( is_dir ( $ src ) && self :: create_path ( $ dst ) ) { $ files = self :: get_files ( $ src ) ; $ dirs = self :: get_dirs ( $ src ) ; foreach ( $ files as $ f ) { copy ( $ f , $ dst . '/' . basename ( $ f ) ) ; } foreach ( $ dirs as $ f ) { self :: copy ( $ f , $ dst . '/' . basename ( $ f ) ) ; } return true ; } else { return false ; } }
Will move the content of the given folder to a new destination. Doesn't move the hidden files.

```php
\bbn\x::dump(\bbn\file\dir::copy("/home/data/test/Folder","/home/data/test/Folder_test"));
\\ (bool) 1
```

@param string $src The path of the files to move
@param string $dst The new destination of files
@return bool
Will move the content of the given folder to a new destination . Doesn t move the hidden files .