@@ -53,7 +53,13 @@ async function createStructureRecursively(
5353 const createdAt = Date . now ( ) - ( timeOffset || 0 ) ;
5454 const updatedAt = Date . now ( ) - ( timeOffset || 0 ) + 2000 ;
5555
56- drive . createFileByPath ( fullPath , fileId , fileSize , createdAt , updatedAt ) ;
56+ drive . createFileByPath ( {
57+ relativePath : fullPath ,
58+ itemId : fileId ,
59+ size : fileSize ,
60+ creationTime : createdAt ,
61+ lastWriteTime : updatedAt ,
62+ } ) ;
5763
5864 result [ fileId ] = fullPath ;
5965 }
@@ -66,13 +72,21 @@ async function createStructureRecursively(
6672 const createdAt = Date . now ( ) - ( timeOffset || 0 ) - 10000 ; // Ejemplo
6773 const updatedAt = Date . now ( ) - ( timeOffset || 0 ) ;
6874
69- drive . createFolderByPath ( newFolderPath , folderId , 1000 , createdAt , updatedAt ) ;
75+ drive . createFolderByPath ( {
76+ relativePath : newFolderPath ,
77+ itemId : folderId ,
78+ creationTime : createdAt ,
79+ lastWriteTime : updatedAt ,
80+ } ) ;
7081
7182 await createStructureRecursively ( drive , newFolderPath , level - 1 , options , result ) ;
7283 }
7384}
7485
75- async function generateRandomFilesAndFolders ( drive : VirtualDrive , options : GenerateOptions ) : Promise < Record < string , string > > {
86+ async function generateRandomFilesAndFolders (
87+ drive : VirtualDrive ,
88+ options : GenerateOptions ,
89+ ) : Promise < Record < string , string > > {
7690 const { rootPath } = options ;
7791
7892 const result : Record < string , string > = { } ;
0 commit comments