home > 比較編 > Perl, PHP, Python, Ruby > directories >

ForNext

Only Do What Only You Can Do

194. recursive copy

VBScript

JScript

Perl

# cpan -i File::Copy::Recursive
use File::Copy::Recursive 'dircopy';

dircopy "/tmp/foodir",
  "/tmp/bardir";

PHP

none




Python

import shutil

shutil.copytree('/tmp/foodir',
  '/tmp/bardir')

Ruby

require 'fileutils'

FileUtils.cp_r("/tmp/foodir",
  "/tmp/bardir")

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system