Naming a file by a url -
i generating images of webpages urls , writing them local filesystem, , want name image url. however, if this, since there /
's in url, create new directories instead of calling image entire url. there way avoid this?
i don't believe it's possible place / or \ in file name. best thing can think recommend replacing / or \ alternate characters not found in urls, such $ ^ , !. if can't find single character replace slash, can use short string that's unlikely in url, such [slash] or combination of symbols.
the problem watch out when using short string length of file names. although oses won't have problem, may not able zip them full name.
Comments
Post a Comment