Changeset 27423 for gs2-extensions/parallel-building
- Timestamp:
- 2013-05-24T09:39:00+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/parallel-building/trunk/src/perllib/FileUtils/HDFSShell.pm
r27386 r27423 111 111 ############################### Public Functions ############################### 112 112 ################################################################################ 113 114 115 ## @function canRead() 116 # 117 sub canRead 118 { 119 my $path = shift(@_); 120 # On my Hadoop setups it appears everyone can read everything... pretty sure 121 # this won't always be the case but I'm not sure if there is some easy way to 122 # determine readability (you'd need to parse the permissions, user, and group 123 # and then somehow compare to the current user). So instead I'll just return 124 # if the file exists 125 return &fileTest($path, '-f'); 126 } 127 ## canRead() 113 128 114 129 … … 218 233 } 219 234 ## filenameConcatenate() 235 236 237 ## @function isFilenameAbsolute() 238 # 239 sub isFilenameAbsolute 240 { 241 # File paths against HDFS must be. 242 return 1; 243 } 244 # isFilenameAbsolute() 220 245 221 246
Note:
See TracChangeset
for help on using the changeset viewer.