摘要 |
A computer-implemented method for storing file paths and file names is disclosed. The method includes creating a path table, creating a file table, receiving a file ID sent from an application, and obtaining a file name, a length of the file name, and a directory ID corresponding to the file from the file table according to the file ID. The method further includes obtaining a file path from the path table according to the directory ID corresponding to the file, merging the file path and the file name so as to generate a merged character string, and sending the merged character string, a length of the file path and a length of the file name to the application for assigning storage space for the file based on the length of the file path and the file name.
|