listDirectory            package:R.utils            R Documentation

_G_e_t_s _t_h_e _f_i_l_e _n_a_m_e_s _i_n _t_h_e _d_i_r_e_c_t_o_r_y

_D_e_s_c_r_i_p_t_i_o_n:

     Gets the file names in the directory.

     Contrary to 'list.files()', this method guarantees to work
     recursively.  Moreover, when subdirectories are processed
     recursively, directory names are also returned.

_U_s_a_g_e:

     ## Default S3 method:
     listDirectory(pathname, pattern=NULL, recursive=FALSE, allNames=FALSE, fullNames=FALSE, ...)

_A_r_g_u_m_e_n_t_s:

pathname: A pathname to be listed.

 pattern: A 'character' string of the filename pattern passed. See
          'list.files'() for more details.

recursive: If 'TRUE', subdirectories are recursively processed,
          otherwise not.

allNames: If 'TRUE', also files starting with a period are returned.

fullNames: If 'TRUE', the full path names are returned.

     ...: Not used.

_V_a_l_u_e:

     Returns a 'vector' of file names.

_A_u_t_h_o_r(_s):

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

_S_e_e _A_l_s_o:

     Internally 'list.files'() is used.

